how to Identify the multi-sort order?
how to Identify the multi-sort order?
riix
Posts: 13Questions: 7Answers: 0
Multi-sort using shift-click works great! User however needs to see some indicatin of the sort column order - maybe a little number "1", "2", "3" etc. next to the sort up/down arrow. Anyone know how to achieve this? thx in advance.
This discussion has been closed.
Answers
Currently the only way DataTables shows this is by grading the background colour of the sorting columns. Less important columns get a lighter background.
However, having a number is a good idea. Probably not something for the core (unless there are a lot of other votes for this feature - to all: if you are reading this add a comment below if you want to vote for it!), but ideal for a plug-in I think.
Allan
if you might have some suggestion or sample on how I would get started on this, I'll get started on this :) .. is a mandatory requirement for current client. cheers.
The way I would probably do it myself is to attach a listener to the
order
event and update the DOM in the header with the information required on each order event.Allan