Is there a simple API call to show child rows of hidden columns using responsive?

Is there a simple API call to show child rows of hidden columns using responsive?

luiscabluiscab Posts: 4Questions: 3Answers: 1

I have a table that is using the responsive plugin with different column priorities. I didn't want to add additional columns to the table that the user would need to click in order to show the hidden columns in the expanded row, and I have a custom button that I am placing inside of the last visible column of every row that the user should click to expand the row. Is there a simple API call that will open/close the child rows?

Using row().child.show() does not work in this case.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Answer ✓

    No there isn't I'm afraid. Although good point - there should be.

    At the moment you would need to activate whatever trigger is being used to show / hide the child rows. For example you could make a click event show / hide on the whole parent row, and use $(...).trigger('click') to make that happen programmatically.

    Allan

This discussion has been closed.