Initializes a new instance of this object.
The static data to search, sort, filter, and paginate.
The options for the static source.
Retrieves the total count of data items before pagination.
The data request being made. The page and size fields are ignored in this instance.
The total number of items across pages that the request data set will represent.
Inserts an item into the existing data array.
The item to insert.
The index to insert at. If this is equal to or less than 0 Then the item will be inserted at the front of the data list. If this is greater than or equal to the maximum number of items in the current list, then the item will be inserted at the end of the list.
A new data source where the item list has been updated to include the new item.
Gets a copy of the current list of items.
This is equivalent to invoking retrieve with the default data request.
A shallow copy of the current item list. Returns a rejected promise if the initial data is an error.
Removes a specific matched item in the list.
The item to remove. This will be an exact match.
A new data source with the item removed, or a direct copy if no such item exists within the list. Returns a rejected promise if the original data is an error.
Removes a specific item at a given index.
The index of the item to remove.
A new data source with the item at the given index removed, or a direct copy if the index is out of range. Returns a rejected promise if the original data is an Error.
Retrieves a single page of data.
The data request that contains the sorting, filtering, search, and pagination info to construct a data view.
A single page of data elements.
Updates an item at the given index.
The item to set.
The index of the item to replace.
A new data source with the item at the given index updated, or a direct copy if the index is out of range. Returns a rejected promise if the original data is an Error.
Represents an in memory data source.
This is very useful for testing and when you need to cache a data set that you already have.