See first Dataset basics tutorial for getting setup and initializing Dataset.
Often you’ll want to listen to events on a Dataset and its associated objects. This is easy to do thanks to the use of Backbone model objects which have a standard set of events.
Here’s an example to illustrate:
Here’s a summary of the main objects and their events:
Dataset.records: Backbone.Collection of “current” records (i.e. those resulting from latest query) with standard Backbone set of events: add, reset, remove
Dataset.queryState: queryState is a Query object with standard Backbone Model set of events
Dataset.fields: Backbone Collection of Fields.