Automatic collapse of a line when clicking on another line

Automatic collapse of a line when clicking on another line

ostmalostmal Posts: 102Questions: 33Answers: 0

Good afternoon, happy Friday! I'm sorry for the trouble!
I studied "responsive"last night:
https://datatables.net/extensions/responsive/
Including studied all the examples:
https://datatables.net/extensions/responsive/examples/
I haven't found anywhere how to make it so that when a line (the disclosure symbol) is clicked, another line collapses.

Answers

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    I don't believe you can do it in the API with Responsive children - this example here shows how to do it with standard child rows. You may be able to try something similar, perhaps listening for responsive-display. Sorry to be vague, just not tried that before!

    Colin

  • ostmalostmal Posts: 102Questions: 33Answers: 0

    Thank you. I'll try it later, maybe something will work out.

Sign In or Register to comment.