dhx.DataStore
Type: Interface
File:
Based on: has not base object
Included in:
Methods
add
- adds item to the store
changeId
- changes id of the data item
clearAll
- removes all items from the component
dataCount
- gets count of items
each
- iterates through collection
exists
- checks if the item with such ID exists
filter
- filters data
first
- gets the ID of the first item
getIndexRange
- converts the range of indexes to array of all IDs between them
getRange
- converts range IDs to array of all IDs between them
id
- gets id of data object
idByIndex
- gets the id of an item with taken index
indexById
- the index of the item in question
item
- gets the object of a data item
last
- gets the id of the last item
move
- moves an item from one position to another
next
- gets ID of the next element which is positioned in defined step
previous
- gets ID of the previous element which is positioned in defined step
provideApi
- assigns methods (and events) of DataStore to an object
refresh
- repaint the whole view or a certain item
remove
- removes element from datastore
scheme
- sets hash of default values for properties
serialize
- serializes data to a json object
setDriver
- defines type of used data driver
silent
- code that you pass here as the parameter will not be affected by 'onStoreUpdated' event handler
sort
- sorts datastore
sync
- allows to sync two copy all, or part of data from one DataCollection to another
update
- sets properties of the data item
Events
onClearAll
- fires after datastore was cleared
onStoreLoad
- fires after data is loaded from external resource
onStoreUpdated
- fires after data is changed in datastore
onafterAdd
- fires after adding item to datastore
onafterDelete
- fires after item deleting
onafterSort
- fires after sorting dataset
onbeforeAdd
- fires before adding item to datastore
onbeforeDelete
- fires before item deleting
onbeforeSort
- fires before sorting dataset
Properties
Doesn't have any