API reference: @salmonui/data-grid
DataGridDetailToggleEventinterface
import type { DataGridDetailToggleEvent } from '@salmonui/data-grid';interface DataGridDetailToggleEvent<Row> extends DataGridEvent {
readonly rowId: RowId;
readonly row: Row | null;
readonly expanded: boolean;
}
onBeforeDetailToggle / onDetailToggle.
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
row | readonly row: Row | null; | |
expanded | readonly expanded: boolean; | The state after the toggle (proposed in the before-event). |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |