DHTMLX Touch documentation

DataStore

  • Type: Interface
  • File: core/datastore.js
  • Based on: has not base object
  • Included in:

Methods

  • add - adds item to the store
  • clearAll - remove 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
  • get - gets hash with properties of an 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
  • 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 a item
  • remove - removes element from datastore
  • set - sets the new hash of properties for an item
  • setDriver - defines type of used data driver
  • sort - sorts datastore

Events

Properties

Doesn't have any