JavaScript array containing data for the component
var books = [
[ "War and Peace", "Leo Tolstoy" ],
[ "Hamlet", "Shakespeare" ],
[ "Madame Bovary", "Gustave Flaubert" ]
];
webix.ui({
view: "suggest",
data: books,
datatype: "jsarray",
template: "#data0# (#data1#)"
});
The property can be a string in case you provide data in csv format. Note that for data types other than JSON the property is used together with the datatype parameter.
{
view:"combo", id: "test", label: 'Custom Icon',
options: {
body:{
data: options,
datatype: "csv",
template:"#data0#"
}
}
}