View as Markdown

API reference: @salmonui/pivot-table

PivotDrillThroughEventinterface

import type { PivotDrillThroughEvent } from '@salmonui/pivot-table';
interface PivotDrillThroughEvent<Row = unknown> extends PivotEvent {
    readonly rowKey: string;
    readonly columnKey: string;
    readonly measure: string | null;
    readonly rowIndex: number;
    readonly columnIndex: number;
    readonly cell: PivotCell;
    rows(): readonly Row[];
}

onBeforeDrillThrough / onDrillThrough.

PivotDrillThroughEvent members (11, 4 inherited)
NameSignatureDescription
rowKeyreadonly rowKey: string;
columnKeyreadonly columnKey: string;
measurereadonly measure: string | null;
rowIndexreadonly rowIndex: number;
columnIndexreadonly columnIndex: number;
cellreadonly cell: PivotCell;
rowsrows(): readonly Row[];

The raw rows behind the cell (computed on call).

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