Programmatically Expand/Collapse (Expandable) Rows in Table

I would love the ability to only allow a single row in a table to be expanded when I have expandable rows enabled for that table. Ideally, this would be a setup selection, but I would also be OK with some sort of event handler where if the selected row changes, the previously selected row collapses and they newly selected row expands.

Sometime it is nice to have multiple rows opened, sometimes it gets noisy and would be better to have only 1.


p.s. see also How to deselect a row in a single-select table? and Dynamically unselect all table rows for other examples of things that should not require custom code in the (new) Table component.

1 Like