Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Identify sortable columns in JQueryUI markup #17
I switched from standard markup to JQueryUI DataTable markup. But I recognized there is no way to identify the columns that are sortable. With the standard markup you apply the classes "sorting", "sorting_asc" etc. to the relevant columns. This way I can for example specify cursor: pointer for sortable columns. But there is no such class in JQueryUI markup.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
When enabling the jQuery UI option in DataTables it applies the sorting class information to the 'span' element which is used for the jQuery UI supplied icon - so the information is there, but not particularly useful if you want to style the header cell as a whole using CSS. I will certainly take a look at adding this into the next major version of DataTables, which will see a good tidy up of all the CSS classes that are using. Thanks for the suggestion - nice one.