Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treats row headers as col headers #5

Open
rotsee opened this issue Dec 3, 2017 · 0 comments
Open

Treats row headers as col headers #5

rotsee opened this issue Dec 3, 2017 · 0 comments

Comments

@rotsee
Copy link

rotsee commented Dec 3, 2017

It seems like the table is sorted whenever the uses clikcs a th element. th can, however, be used for rows as well as for columns (and for rowgroups, but that's rarely seen in the wild). Clicking on such cells should probably not trigger a re-sort-

Example:

    <table>
      <thead>
        <tr>
          <th scope="col" data-tsorter="str">City
          <th scope="col" data-tsorter="num">Population
        </tr>
      </thead>
      <tbody>
          <tr>
            <th scope="row">Berlin
            <td>1,234,567
          </tr>
          <tr>
            <th scope="row">Berlin
            <td>1,234,567
          </tr>
      </tbody>
    </table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant