Is it possible to sort on images or icons ?

Is it possible to sort on images or icons ?

fd80132fd80132 Posts: 2Questions: 1Answers: 0

Hi,

All is in the title: Is it possible to sort on images or icons ?

Thanks !

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Answer ✓

    Sure - you need to give DataTables some information to sort on - obviously it can't interpret the image, but if you want to sort on the URL, then you can. Set the column.type to string so that HTML is not stripped. Otherwise you could use a custom plug-in.

    Allan

  • fd80132fd80132 Posts: 2Questions: 1Answers: 0

    Thanks allan, just what I need !

This discussion has been closed.