TinyBase logoTinyBase

HasTablesListener

The HasTablesListener type describes a function that is used to listen to Tables as a whole being added to or removed from the Store.

(
  store: Store,
  hasTables: boolean,
): void
TypeDescription
storeStore

A reference to the Store that changed.

hasTablesboolean

Whether Tables now exist or not.

returnsvoid

This has no return value.

A HasTablesListener is provided when using the addHasTablesListener method. See that method for specific examples.

When called, a HasTablesListener is given a reference to the Store. It is also given a flag to indicate whether Tables now exist (having not done previously), or do not (having done so previously).

Since

v4.4.0