CellDataChangedInfo
Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row
export interfaceProperties
| Property | Type | Description |
|---|---|---|
| changedAt | number | Timestamp of change occurrence (in milliseconds) |
| column | AdaptableColumn<TData> | Column in which cell is situated |
| newValue | any | Value after the change. Absent when trigger is live. |
| oldValue | any | Value before the change. Absent when trigger is live. |
| preventEdit | boolean | Whether the change was prevented by a validation rule |
| primaryKeyValue | any | Primary Key Column's value for the row where edited cell is situated |
| rowData | TData | Data in the Row |
| rowNode | IRowNode<TData> | AG Grid RowNode that contains the cell |
| trigger | 'edit' | 'tick' | 'undo' | 'aggChange' | 'calculatedColumnChange' | 'live' | What triggered the change - user, background change, a reverted change, a derived update on a Calculated Column whose source value changed, or a live Alert rule turning true for the row ( live: no old / new value,column is the rule's first Scope column when it has one). |
Property Details
changedAt
Timestamp of change occurrence (in milliseconds)
changedAt: number;Property Value
number
column
Column in which cell is situated
column: AdaptableColumn<TData>;Property Value
AdaptableColumn<TData>
newValue
Value after the change.
Absent when trigger is live.
newValue: any;Property Value
any
oldValue
Value before the change.
Absent when trigger is live.
oldValue: any;Property Value
any
preventEdit
Whether the change was prevented by a validation rule
preventEdit?: boolean;Property Value
boolean
primaryKeyValue
Primary Key Column's value for the row where edited cell is situated
primaryKeyValue: any;Property Value
any
rowData
Data in the Row
rowData?: TData;Property Value
TData
rowNode
AG Grid RowNode that contains the cell
rowNode?: IRowNode<TData>;Property Value
IRowNode<TData>
trigger
What triggered the change - user, background change, a reverted change, a
derived update on a Calculated Column whose source value changed, or a
live Alert rule turning true for the row (live: no old / new value,
column is the rule's first Scope column when it has one).
trigger?: 'edit' | 'tick' | 'undo' | 'aggChange' | 'calculatedColumnChange' | 'live';Property Value
'edit' | 'tick' | 'undo' | 'aggChange' | 'calculatedColumnChange' | 'live'