Table events
Property | Type | Default value | Description |
---|---|---|---|
collapseAllHandleRef | React.MutableRefObject<() => void> | undefined | ref handle to collapse all expanded accordion rows. Send in a ref and use .current() to collapse all rows. |
<Tr>
events
Table Row Table Row <Tr>
events are a part of the accordion feature and needs to be enabled with the accordion
property on the main Table.
Property | Type | Default value | Description |
---|---|---|---|
onClick | (event) => void | undefined | will emit when user clicks/expands the table row. Returns a native click. |
onOpened | ({ target }) => void | undefined | Will emit when table row is expanded. Returns an object with the table row as the target: { target } . |
onClosed | ({ target }) => void | undefined | Will emit when table row is closed (after it was open). Returns an object with the table row as the target: { target } . |