Creates an instance of DataSet.
The number of items in the DataSet.
Add one or multiple items to the DataSet. Adding an item will fail when there already is an item with the same id.
data can be a single item or an array with items.
The function returns an array with the ids of the added items.
Clear all data from the DataSet.
The function returns an array with the ids of the removed items.
Find all distinct values of a specified field. If data items do not contain the specified field are ignored.
The search term.
Returns an unordered array containing all distinct values.
Flush queued changes. Only available when the DataSet is configured with the option queue.
Execute a callback function for every item in the dataset.
The item callback.
Get all items from the DataSet.
When no item is found, null is returned when a single item was requested, and and empty Array is returned in case of multiple id's.
Get a single item from the DataSet.
The item id.
When no item is found, null is returned when a single item was requested, and and empty Array is returned in case of multiple id's.
Get multiple items from the DataSet.
Array of item ids.
When no item is found, null is returned when a single item was requested, and and empty Array is returned in case of multiple id's.
Get the DataSet itself. In case of a DataView, this function does not return the DataSet to which the DataView is connected.
The DataSet itself.
Get ids of all items or of a filtered set of items.
ids of all items or of a filtered set of items.
Map every item in the DataSet.
The mapping callback.
The mapped items.
Find the item with maximum value of specified field.
Returns null if no item is found.
Find the item with minimum value of specified field.
Returns null if no item is found.
Unsubscribe to an event.
The event name.
The exact same callback that was used when calling 'on'.
Subscribe from an event.
The event name.
a callback function which will be called each time the event occurs.
Remove one or more items by id.
The item id.
Returns an array with the ids of the removed items.
Set options for the DataSet.
Update one or multiple existing items. When an item doesn't exist, it will be created.
a single item or an array with items.
Returns an array with the ids of the updated items.
Creates an instance of DataSet.