sorting arrow widget

sorting arrow widget

romsokromsok Posts: 38Questions: 0Answers: 0
edited December 2009 in General
I would like to implement the column sorting arrow the examples here have - or a variation on the theme.
Could you please point to examples that do specifically that?

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    The column sorting arrow is just an image ( http://datatables.net/media/images/sort_asc.jpg for example) - just change that to whatever image you want.

    Allan
  • romsokromsok Posts: 38Questions: 0Answers: 0
    OK, but how do I make the image change when I sort descending, ascending? Is there a feature like this in DataTables?
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    DataTables does this automatically. Have a look at the image name - the clue is there :-)

    http://datatables.net/media/images/sort_asc.jpg - is going to be 'ascending'
    http://datatables.net/media/images/sort_desc.jpg - will therefore be 'descending'.

    This is defined in my demo CSS files. Probably a good idea to have a look in there. Also having a poke around hte live DOM with Firebug might help.

    Allan
This discussion has been closed.