data

JavaScript array containing data for the component

string|array|object data;

Example

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

Related samples

Details

The data property serves only as an initial data source. After the data has been parsed, it will be kept in the inner storage for loaded data.

The source array will be modified during data parsing. To reuse the original data array, make a copy of it and continue with the copied array.

For data types other than JSON the property is used together with the datatype parameter.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix best ui framework and page of object list javascript product.