Collapse all table rows programmatically?

Is there a way to do this? E.g., could I add a button somewhere to enable the user to close all currently expanded rows?

Hi there, Thanks for reaching out about this. We haven't added a method for this yet, but it's a popular feature request that we hope to ship in the future! I'll reach back out here when I get an update on adding a method for this