View as Markdown

API reference: @salmonui/pivot-table

PivotComputeEventinterface

import type { PivotComputeEvent } from '@salmonui/pivot-table';
interface PivotComputeEvent extends PivotEvent {
    readonly phase: 'initial' | 'update';
    readonly status: PivotComputeStatus;
    readonly duration: number;
    readonly result: PivotResult | null;
}

onComputeStart / onComputeEnd.

PivotComputeEvent members (8, 4 inherited)
NameSignatureDescription
phasereadonly phase: 'initial' | 'update';
statusreadonly status: PivotComputeStatus;
durationreadonly duration: number;

Milliseconds from start to end (end event only; 0 on start).

resultreadonly result: PivotResult | null;
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).