ResultCellListener
The ResultCellListener
type describes a function that is used to listen to changes to a Cell
in a query's result Table
.
(
queries: Queries,
tableId: Id,
rowId: Id,
cellId: Id,
newCell: Cell,
oldCell: Cell,
getCellChange: GetCellChange | undefined,
): void
Type | Description | |
---|---|---|
queries | Queries | A reference to the |
tableId | Id | The |
rowId | Id | |
cellId | Id | |
newCell | Cell | The new value of the |
oldCell | Cell | The old value of the |
getCellChange | GetCellChange | undefined | A function that returns information about any |
returns | void | This has no return value. |
A ResultCellListener
is provided when using the addResultCellListener
method. See that method for specific examples.
When called, a ResultCellListener
is given a reference to the Queries
object, the Id
of the Table
that changed (which is the same as the query Id
), the Id
of the Row
that changed, and the Id
of Cell
that changed. It is also given the new value of the Cell
, the old value of the Cell
, and a GetCellChange
function that can be used to query Cell
values before and after the change.
v2.0.0