Readonly
capabilitiesCapabilities of the data set. The capabilities are only readable if the dataset is "initialized".
Readonly
dataThe real data source.
Readonly
dataService metadata about the data source if provided.
Readonly
fieldsThe fields of the data set. The fields are only readable if the dataset is "initialized".
Readonly
idDataset id. Typically initialized and equal to id of data source (store id).
Readonly
initA initialization error. Is available if state === "init-error".
Readonly
initialProvides access to the initial id provider, if not yet used to init the dataset.
Readonly
itemThe amount of items in the dataset. The itemCount is only readable if the dataset is "initialized".
Readonly
stateThe current state of the dataset.
Changeable title. Typically initialized from data source.
Readonly
updateA 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.
A data set represents a subset of items of a data source. It provides access to full displayable data.
The
dataSource
property is the source of the available data and in most cases an instance of a store.You can watch the properties
title
,itemCount
,state
,initError
andupdateError
for changes.You can watch for the events
items-changed
,destroyed
.