TinyBase

Listener methods

This is the collection of listener methods within the Store interface. There are 12 listener methods in total.

addTablesListener

The addTablesListener method registers a listener function with the Store that will be called whenever data in the Store changes.

addTableIdsListener

The addTableIdsListener method registers a listener function with the Store that will be called whenever the Table Ids in the Store change.

addTableListener

The addTableListener method registers a listener function with the Store that will be called whenever data in a Table changes.

addRowIdsListener

The addRowIdsListener method registers a listener function with the Store that will be called whenever the Row Ids in a Table change.

addRowListener

The addRowListener method registers a listener function with the Store that will be called whenever data in a Row changes.

addCellIdsListener

The addCellIdsListener method registers a listener function with the Store that will be called whenever the Cell Ids in a Row change.

addCellListener

The addCellListener method registers a listener function with the Store that will be called whenever data in a Cell changes.

addInvalidCellListener

The addInvalidCellListener method registers a listener function with the Store that will be called whenever invalid data was attempted to be written to a Cell.

addDidFinishTransactionListener

The addDidFinishTransactionListener method registers a listener function with the Store that will be called just after other non-mutating listeners are called at the end of the transaction.

addWillFinishTransactionListener

The addWillFinishTransactionListener method registers a listener function with the Store that will be called just before other non-mutating listeners are called at the end of the transaction.

callListener

The callListener method provides a way for you to manually provoke a listener to be called, even if the underlying data hasn't changed.

delListener

The delListener method removes a listener that was previously added to the Store.