Skip to content

Table events

PropertyTypeDefault valueDescription
collapseAllHandleRefReact.MutableRefObject<() => void>undefinedref handle to collapse all expanded accordion rows. Send in a ref and use .current() to collapse all rows.

Table Row <Tr> events

Table Row <Tr> events are a part of the accordion feature and needs to be enabled with the accordion property on the main Table.

PropertyTypeDefault valueDescription
onClick(event) => voidundefinedwill emit when user clicks/expands the table row. Returns a native click.
onOpened({ target }) => voidundefinedWill emit when table row is expanded. Returns an object with the table row as the target: { target }.
onClosed({ target }) => voidundefinedWill emit when table row is closed (after it was open). Returns an object with the table row as the target: { target }.