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

Sorting: Excluding a column #42

Closed
ricardozea opened this issue Apr 3, 2013 · 2 comments
Closed

Sorting: Excluding a column #42

ricardozea opened this issue Apr 3, 2013 · 2 comments

Comments

@ricardozea
Copy link

Hello,

Not if this is doable right now, but I read the documentation and couldn't find find anything related to this case.

My issue right now is that I would like to exclude a column from sorting.

The thing is that I have a column that holds thumbnails, just small preview images of the files they correspond to, so "sorting by thumbnail"... the sorting concept doesn't apply in this case.

Is there a data- attribute to "exclude" a column from sorting?

EDIT--

I used data-ignore on the header but it didn't work.

I used it like this:

<thead>
  <tr>
    <th data-ignore="true">Thumbnail</th>
  </tr>
  <tr>
    <th>...</th>
  </tr>
<thead>

Thanks.

@bradvin
Copy link
Member

bradvin commented Apr 3, 2013

rather use data-sort-ignore="true"

@ricardozea
Copy link
Author

Ha! It worked great, thanks!

You think you could add this to the documentation in the Data Attribute Configuration section?

Just saying, since this feature is not documented yet and also thinking about others that may have the same issue.

Just twitted this solution as well.

Thanks again!

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

2 participants