Core of all operations for data-collection based components.
add | adds an item to the store |
addMark | allows setting custom flag for a data item. |
attachEvent | attaches the handler to an inner event of the component (allows behaviour customizations) |
blockEvent | temporarily blocks triggering of ALL events of the calling object |
callEvent | calls an inner event |
changeId | changes the id of a data item |
clearAll | removes all items from the component |
clearMark | removes mark from all items in store |
count | returns the number of currently visible items |
destructor | destroy datastore |
detachEvent | detaches a handler from an event (which was attached before by the attachEvent method) |
each | iterates through the collection of data items |
exists | checks whether an item with the specified id exists |
filter | filters the component |
getFirstId | returns the ID of the first item |
getIdByIndex | returns the id of the item with the specified index |
getIndexById | returns the index of the item with the specified id |
getIndexRange | gets ids of items in the specified index range |
getItem | gets the object of the data item with the specified id |
getLastId | returns the id of the last item |
getMark | returns mark value by record id and mark name |
getNextId | returns the ID of an item which is positioned the specified step after the specified item |
getPrevId | returns the ID of an item which is positioned the specified step before the specified item |
getRange | gets ids of items in the specified range |
hasEvent | checks whether the component has the specified event |
id | gets the id of a data item |
importData | import data from different datastore |
mapEvent | routes events from one object to another |
move | moves the specified item to the new position |
provideApi | assigns methods (and events) of DataStore to an object |
refresh | repaints the whole view or a certain item |
remove | removes the specified item from datastore |
removeMark | removes a flag set for the specified item |
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 syncing two copies of data (all or just a part of it) from one DataCollection to another |
unblockEvent | cancels blocking events that was enabled by the 'blockEvent' command |
unsync | breaks "sync" link |
updateItem | sets properties of the data item |