View as Markdown

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.

PivotExpandedChangeEvent members (8, 4 inherited)
NameSignatureDescription
actionreadonly action: 'expand' | 'collapse' | 'expandAll' | 'collapseAll';
pathreadonly path: PivotMemberPath | null;

The member drilled, or null for expand / collapse all.

axisreadonly axis: 'rows' | 'columns' | null;
expandedreadonly expanded: boolean;
typeinheritedtype: string;

'sortChange', 'beforeSortChange', ...

sourceinheritedsource: DataGridEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;

True after preventDefault() (before-events and click events).

preventDefaultinheritedpreventDefault: () => void;

Before-events and click events: cancels the action (or the built-in behavior).