data

JavaScript array containing data for the component

string|array data;

Example

var books = [
    [ "War and Peace", "Leo Tolstoy" ],
    [ "Hamlet", "Shakespeare" ],
    [ "Madame Bovary", "Gustave Flaubert" ]
];
 
webix.ui({
    view: "suggest",
    data: books,
    datatype: "jsarray",
    template: "#data0# (#data1#)"
});

Related samples

Details

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#"
        }
      }
    }
See also
Back to top