TableListener
The TableListener type describes a function that is used to listen to changes to a Table.
(
store: Store,
tableId: Id,
getCellChange: GetCellChange | undefined,
): void| Type | Description | |
|---|---|---|
store | Store | A reference to the |
tableId | Id | |
getCellChange | GetCellChange | undefined | A function that returns information about any |
| returns | void | This has no return value. |
A TableListener is provided when using the addTableListener method. See that method for specific examples.
When called, a TableListener is given a reference to the Store, the Id of the Table that changed, and a GetCellChange function that can be used to query Cell values before and after the current transaction.
Note that if the listener was manually forced to be called (with the callListener method rather than due to a real change in the Store), the GetCellChange function will not be present.
Since
v1.0.0