View as Markdown

API reference: @salmonui/pivot-table

PivotFieldMoveEventinterface

import type { PivotFieldMoveEvent } from '@salmonui/pivot-table';
interface PivotFieldMoveEvent extends PivotEvent {
    readonly field: string;
    readonly from: PivotAxis | null;
    readonly to: PivotAxis | null;
    readonly index: number;
}

onBeforeFieldMove / onFieldMove.

PivotFieldMoveEvent members (8, 4 inherited)
NameSignatureDescription
fieldreadonly field: string;
fromreadonly from: PivotAxis | null;
toreadonly to: PivotAxis | null;

Null removes the field from the report.

indexreadonly index: number;
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).