Item type that may or may not have an id.
Name of the property that contains the id.
Create a DataView.
The instance containing data (directly or indirectly).
Options to configure this data view.
Event listener. Will propagate all events from the connected data set to the subscribers of the DataView, but will filter the items and only trigger when there are changes in the filtered data set.
The number of items.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
The key of id property.
Render the instance unusable prior to garbage collection.
Execute a callback function for each item.
Executed in similar fashion to Array.forEach callback, but instead of item, index, array receives item, id.
Options to specify iteration details.
Get all the items.
An array containing all the items.
Get all the items.
Additional options.
An array containing requested items.
Get all the items.
Additional options.
An object map of items (may be an empty object if there are no items).
Get all the items.
Additional options.
An array containing requested items or if requested an object map of items (may be an empty object if there are no items).
Get one item.
The id of the item.
The item or null if the id doesn't correspond to any item.
Get one item.
The id of the item.
Additional options.
The item or null if the id doesn't correspond to any item.
Get one item.
The id of the item.
Additional options.
An object map of items (may be an empty object if no item was found).
Get one item.
The id of the item.
Additional options.
The item if found or null otherwise. If requested an object map with 0 to 1 items.
Get multiple items.
An array of requested ids.
An array of found items (ids that do not correspond to any item are omitted).
Get multiple items.
An array of requested ids.
Additional options.
An array of found items (ids that do not correspond to any item are omitted).
Get multiple items.
An array of requested ids.
Additional options.
An object map of items (may be an empty object if no item was found).
Get multiple items.
An array of requested ids.
Additional options.
An array of found items (ids that do not correspond to any item are omitted). If requested an object map of items (may be an empty object if no item was found).
Get items.
Id or ids to be returned.
Options to specify iteration details.
The items (format is determined by ids (single or array) and the options.
Get the DataSet to which the instance implementing this interface is connected. In case there is a chain of multiple DataViews, the root DataSet of this chain is returned.
The data set that actually contains the data.
Get ids of items.
Additional configuration.
An array of requested ids.
Map each item into different item and return them as an array.
Array.map-like callback, but only with the first two params.
Options to specify iteration details.
The mapped items.
Remove a universal event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Remove an add
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Remove a remove
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Remove an update
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Add a universal event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Add an add
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Add a remove
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Add an update
event listener.
Event name.
Callback function.
The name of the event (EventName).
Data about the items affected by this event.
A senderId, optionally provided by the application code which triggered the event. If senderId is not provided, the argument will be null
.
Refresh the DataView. Useful when the DataView has a filter function containing a variable parameter.
Set a data source for the view.
The instance containing data (directly or indirectly).
Stream.
Ids of the items to be included in this stream (missing are ignored), all if omitted.
The data stream for this data set.
Generated using TypeDoc
DataView
A DataView offers a filtered and/or formatted view on a DataSet. One can subscribe to changes in a DataView, and easily get filtered or formatted data without having to specify filters and field types all the time.
Example