TinyBase logoTinyBase

HasTableCellListener

The HasTableCellListener type describes a function that is used to listen to a Cell being added to or removed from a Table as a whole.

(
  store: Store,
  tableId: Id,
  cellId: Id,
  hasTableCell: boolean,
): void
TypeDescription
storeStore

A reference to the Store that changed.

tableIdId

The Id of the Table that changed.

cellIdId

The Id of the Table Cell that changed.

hasTableCellboolean

Whether the Cell now exists anywhere in the Table or not.

returnsvoid

This has no return value.

A HasTableCellListener is provided when using the addHasTableCellListener method. See that method for specific examples.

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

Since

v4.4.0