Trigger sorting just on sorting icon

Trigger sorting just on sorting icon

alzamboalzambo Posts: 38Questions: 17Answers: 1

Hi,
how can I bind column sorting just to the icon and to the entire header cell?
Thank you,
Alex

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    There is currently no option for that built into DataTables. The icon is a CSS background image on the whole cell, so it can be selected by Javascript only. You'd need to use a custom header renderer and bind the event listener using order.listener(). Not the easiest thing I'm afraid. I hope to make it easier in future.

    Allan

  • alzamboalzambo Posts: 38Questions: 17Answers: 1

    Ok, I will... thank you
    Alex

This discussion has been closed.