Access displayed results
Access displayed results
Ditow
Posts: 2Questions: 1Answers: 0
Hi,
I need to access only the currently displayed rows of my table in my event listener.
I tried using table.info
or table.data()
but I always get global informations.
I need to display the datas of the table in a chart so I need the ids of the displayed rows (1st column)
Here is a jsfiddle :
http://jsfiddle.net/fs7antxy/2/
Thanks
This discussion has been closed.
Answers
Use the
selector-modifier
option to limit the data to just the current page - for exampletable.rows( { page: 'current' } ).data();
Allan
That's exactly what I needed; thanks!