View as Markdown

API reference: @salmonui/pivot-table

PivotDataChangeEventinterface

import type { PivotDataChangeEvent } from '@salmonui/pivot-table';
interface PivotDataChangeEvent<Row = unknown> {
    readonly data: readonly Row[];
    readonly changes: readonly {
        readonly index: number;
        readonly row: Row;
        readonly previous: Row | undefined;
    }[];
    readonly action: 'update' | 'add' | 'delete';
}

onDataChange: drill-through edits wrote these rows.

PivotDataChangeEvent members (3)
NameSignatureDescription
datareadonly data: readonly Row[];
changesreadonly changes: readonly { readonly index: number; readonly row: Row; readonly previous: Row | undefined; }[];
actionreadonly action: 'update' | 'add' | 'delete';