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.
| Name | Signature | Description |
|---|---|---|
data | readonly data: readonly Row[]; | |
changes | readonly changes: readonly {
readonly index: number;
readonly row: Row;
readonly previous: Row | undefined;
}[]; | |
action | readonly action: 'update' | 'add' | 'delete'; |