TinyBase logoTinyBase

HasCellListener

The HasCellListener type describes a function that is used to listen to a Cell being added to or removed from the Store.

(
  store: Store,
  tableId: Id,
  rowId: Id,
  cellId: Id,
  hasCell: boolean,
): 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.

cellIdId

The Id of the Cell that changed.

hasCellboolean

Whether the Cell now exists or not.

returnsvoid

This has no return value.

A HasCellListener is provided when using the addHasCellListener method. See that method for specific examples.

When called, a HasCellListener is given a reference to the Store, the Id of the Table that changed, the Id of the Row that changed, and the Id of Cell that changed. It is also given a flag to indicate whether the Cell now exists (having not done previously), or does not (having done so previously).

Since

v4.4.0