View as Markdown

API reference: @salmonui/pivot-table

PivotAggregateMenuOpenEventinterface

import type { PivotAggregateMenuOpenEvent } from '@salmonui/pivot-table';
interface PivotAggregateMenuOpenEvent extends PivotEvent {
    readonly field: string;
    readonly index: number;
    readonly items: PivotAggregate[];
}

onBeforeAggregateMenuOpen.

PivotAggregateMenuOpenEvent members (7, 4 inherited)
NameSignatureDescription
fieldreadonly field: string;
indexreadonly index: number;

Position in pivotModel.values.

itemsreadonly items: PivotAggregate[];

Aggregates offered; edit with items (mutable copy).

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