driver

defines data driver - methods and properties for data parsing

object driver;

Example

// load JSON
$$('mylist').data.driver = webix.DataDriver.json;
$$('mylist').load("data.json");
// it is the same as
$$('mylist').load("data.json","json");
 
// load XML
$$('mylist').data.driver = webix.DataDriver.xml;
$$('mylist').load("data.xml","xml");

Details

The property can take one of a predefined set of values.
The predefined values are:

  1. xml
  2. json (default)
  3. csv
  4. jsarray
  5. html
  6. htmltable

Or the name of a custom-defined data type:

webix.DataDriver.customType={ //customType - the name of the new data type
   ...
}
$$('mylist1').data.driver = webix.DataDriver.customType;
See also
Back to top