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: "list",
    data: books,
    datatype: "jsarray",
    template: "#data0# (#data1#)"
});

Related samples

Details

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

See also
Back to top