How to check the current responsive status of a given DataTable?

How to check the current responsive status of a given DataTable?

tgsalatgsala 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

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Answer ✓

    That information currently isn't exposed in the API I'm afraid. I'll add it to the next version of Responsive.

    Allan

  • tgsalatgsala Posts: 3Questions: 1Answers: 0

    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.

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    For anyone that finds this discussion, Responsive will shortly include columns().responsiveHidden() and column().responsiveHidden() to determine the state of a column in a Responsive table.

    Allan

This discussion has been closed.