InvalidCellListener
The InvalidCellListener
type describes a function that is used to listen to attempts to set invalid data to a Cell
.
(
store: Store,
tableId: Id,
rowId: Id,
cellId: Id,
invalidCells: any[],
): void
Type | Description | |
---|---|---|
store | Store | A reference to the |
tableId | Id | |
rowId | Id | |
cellId | Id | |
invalidCells | any[] | An array of the values of the |
returns | void | This has no return value. |
An InvalidCellListener
is provided when using the addInvalidCellListener
method. See that method for specific examples.
When called, an InvalidCellListener
is given a reference to the Store
, the Id
of the Table
, the Id
of the Row
, and the Id
of Cell
that was being attempted to be changed. It is also given the invalid value of the Cell
, which could have been of absolutely any type. Since there could have been multiple failed attempts to set the Cell
within a single transaction, this is an array containing each attempt, chronologically.
Since
v1.1.0