ReadonlycapabilitiesCapabilities of the data set. The capabilities are only readable if the dataset is "initialized".
ReadonlydataThe real data source.
ReadonlydataService metadata about the data source if provided.
ReadonlyfieldsThe fields of the data set. The fields are only readable if the dataset is "initialized".
ReadonlyidDataset id. Typically initialized and equal to id of data source (store id).
ReadonlyinitA initialization error. Is available if state === "init-error".
ReadonlyinitialProvides access to the initial id provider, if not yet used to init the dataset.
ReadonlyitemThe amount of items in the dataset. The itemCount is only readable if the dataset is "initialized".
ReadonlystateThe current state of the dataset.
Changeable title. Typically initialized from data source.
ReadonlyupdateA update error. This error may happen if an updating process failed.
Adds the given items to the dataset. Before using this method check the DatasetCapabilities.supportsAddItems State. If supportsAddItems is false, the method will throw an error.
Ids which will be added to the Dataset.
Adds the given items to the dataset. Before using this method check the DatasetCapabilities.supportsAddItems State. If supportsAddItems is false, the method will throw an error.
A provider which provides new ids.
Provides a way to convert the values of a data set item into a domain values. Note to ensure that the method is working correctly the values of all domain fields should be provided.
fields and the matching values.
converted values or the original value if not convertible.
Registers event listener.
Queries all available item ids from the dataset.
Queries items from the dataset.
the query.
Removes the given items from the dataset. Before using this method check the DatasetCapabilities.supportsRemoveItems State. If supportsRemoveItems is false, the method will throw an error.
Ids which should be deleted from the dataset.
Replaces all items in the dataset by the items provided by the ids provider. All items not longer provided by the ids provider will be removed from the dataset.
A provider which provides ids.
A data set represents a subset of items of a data source. It provides access to full displayable data.
The
dataSourceproperty is the source of the available data and in most cases an instance of a store.You can watch the properties
title,itemCount,state,initErrorandupdateErrorfor changes.You can watch for the events
items-changed,destroyed.