15
Views
1
Comments
[TableRowExpandableContent] Expand all & Collapse All
tablerowexpandablecontent
Reactive icon
Forge asset by José Pedro Proença
Application Type
Reactive

In this forge component - 
Can it be possible that i have one button expand all which will open all the expandable coloums inside the table ? 

2021-01-21 14-05-49
José Pedro Proença
 
MVP

Hi Ananya, not without changing the component itself. I would guess that using built in accordion would be a more natural fit for your use case.
If you want to proceed with this one, you should clone the component and create a JS inside a client action that would toggle the CSS class is-open on all rows or that would programmatically click on the table rows. But again, it doesn't seem to me that this would be a good use of this component, as it differs from its initial intent and architecture.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.