Requesting an isSelected() method in the API
Requesting an isSelected() method in the API
![Loren Maxwell](https://datatables.net/forums/uploads/userpics/907/nQU402M3AJ88T.jpg)
I'd like to make a feature request for an isSelected() method in the API, such as:
cell().isSelected()
column().isSelected()
row().isSelected()
It seems at the moment jQuery's hasClass is the only way to determine is the row is selected:
https://www.datatables.net/forums/discussion/comment/148900/
This question has accepted answers - jump to:
Answers
Allan or Colin can comment on when or if there will be an API for this. It would be handy. In the meantime you can create your own API plugin. Something like this:
http://live.datatables.net/fesufubu/1/edit
Click the button you will see false. Select Ashton Cox row and click the button again.
Kevin
would also do it.
However, I agree - this is a utility method that would round off the API nicely. I've committed it in here and it will be in the next release of Scroller.
Allan
Thanks, Kevin (@kthorngren).
I still hope @allan and company add this to the API, but this works great!
Thanks, @allan!
And just a minor note for clarification for future readers, I think you meant in the next release of Select :-)