View as Markdown

API reference: @salmonui/pivot-table

PivotSelectionChangeEventinterface

import type { PivotSelectionChangeEvent } from '@salmonui/pivot-table';
interface PivotSelectionChangeEvent extends PivotEvent {
    readonly cells: readonly PivotCellKey[];
    readonly keys: readonly string[];
}

onBeforeSelectionChange / onSelectionChange.

PivotSelectionChangeEvent members (6, 4 inherited)
NameSignatureDescription
cellsreadonly cells: readonly PivotCellKey[];
keysreadonly keys: readonly string[];

rowKey|columnKey strings.

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).