loads a collection of items from a local source
data | array|string | the data to load |
type | string | optional, type of data (json, csv, xml), json by default |
array | an array of loaded items |
// parse toolbar from the json array
toolbar.data.parse(data);
// parse toolbar from the xml string
toolbar.data.parse(data,"xml");
// parse toolbar from the csv string
toolbar.data.parse(data,"csv");
Back to top