API reference: @salmonui/data-grid
DataGridGroupToggleEventinterface
import type { DataGridGroupToggleEvent } from '@salmonui/data-grid';interface DataGridGroupToggleEvent<Row> extends DataGridEvent {
readonly groupId: RowId;
readonly path: readonly GroupPathSegment[];
readonly key: GroupRowSnapshot['key'];
readonly expanded: boolean;
readonly lazy: boolean;
rows(): readonly Row[];
}
onBeforeGroupToggle / onGroupToggle (lazy and eager groups).
| Name | Signature | Description |
|---|---|---|
groupId | readonly groupId: RowId; | |
path | readonly path: readonly GroupPathSegment[]; | |
key | readonly key: GroupRowSnapshot['key']; | |
expanded | readonly expanded: boolean; | The state after the toggle (proposed in the before-event). |
lazy | readonly lazy: boolean; | True in lazy mode. |
rows | rows(): readonly Row[]; | |
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). |