How to check the current responsive status of a given DataTable?
How to check the current responsive status of a given DataTable?
tgsala
Posts: 3Questions: 1Answers: 0
Hello! I'm having a hard time finding information about how to check the current responsive status of a given DataTable.
The ideal value I'm looking for is something like the columns array in the responsive-resize event.
I've already tried to use columns().visible() without success. I've also searched inside the settings(), but couldn't find anything useful other than the visibility status mentioned before.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
That information currently isn't exposed in the API I'm afraid. I'll add it to the next version of Responsive.
Allan
Thanks! I'm looking forward to it!
In the meantime I'm just cheking if the control column's style has "display: none". At least I can know if the responsive was triggered.
For anyone that finds this discussion, Responsive will shortly include
columns().responsiveHidden()
andcolumn().responsiveHidden()
to determine the state of a column in a Responsive table.Allan