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

Add a class to sortable columns th #5

Closed
waiting-for-dev opened this issue Dec 23, 2012 · 1 comment
Closed

Add a class to sortable columns th #5

waiting-for-dev opened this issue Dec 23, 2012 · 1 comment

Comments

@waiting-for-dev
Copy link

I think a class should be automatically added (or even better, added if configured) to the th of the columns that can be sorted. That way there would be an easy way to take that columns and add some CSS to them (for example, a draggable cursor).

Thanks a lot for this plugin!

@DataTables
Copy link
Collaborator

DataTables adds one of sorting_asc, sorting_desc or sorting (sortable but no sorting applied) to the cells which are sortable. So you could add:

.sorting_asc,
.sorting_desc,
.sorting {
   cursor: move;
}

to your CSS.

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