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.
| Name | Signature | Description |
|---|---|---|
field | readonly field: string; | |
from | readonly from: PivotAxis | null; | |
to | readonly to: PivotAxis | null; | Null removes the field from the report. |
index | readonly index: number; | |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |