API reference: @salmonui/pivot-table
PivotExpandedChangeEventinterface
import type { PivotExpandedChangeEvent } from '@salmonui/pivot-table';interface PivotExpandedChangeEvent extends PivotEvent {
readonly action: 'expand' | 'collapse' | 'expandAll' | 'collapseAll';
readonly path: PivotMemberPath | null;
readonly axis: 'rows' | 'columns' | null;
readonly expanded: boolean;
}
onBeforeExpandedChange / onExpandedChange.
| Name | Signature | Description |
|---|---|---|
action | readonly action: 'expand' | 'collapse' | 'expandAll' | 'collapseAll'; | |
path | readonly path: PivotMemberPath | null; | The member drilled, or null for expand / collapse all. |
axis | readonly axis: 'rows' | 'columns' | null; | |
expanded | readonly expanded: boolean; | |
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). |