TinyBase logoTinyBase

CellIdsListener

The CellIdsListener type describes a function that is used to listen to changes to the Cell Ids in a Row.

(
  store: Store,
  tableId: Id,
  rowId: Id,
  getIdChanges: GetIdChanges | undefined,
): void
TypeDescription
storeStore

A reference to the Store that changed.

tableIdId

The Id of the Table that changed.

rowIdId

The Id of the Row that changed.

getIdChangesGetIdChanges | undefined

A function that returns information about the Id changes, since v3.3.

returnsvoid

This has no return value.

A CellIdsListener is provided when using the addCellIdsListener method. See that method for specific examples.

When called, a CellIdsListener is given a reference to the Store, the Id of the Table that changed, and the Id of the Row whose Cell Ids changed.

Since v3.3, the listener is also passed a GetIdChanges function that can be used to query which Ids changed during the transaction.