setValue

sets data values for the inner elements of a datalayout

void setValue(array values);
valuesarrayan array of objects with "property:value" pairs for each element

Example

webix.ui({
    view:"datalayout",
    id:"data",
    type:"space",
    rows:[
       { view:"text", label:"Name", name:"month"},
       { view:"datatable", name:"data", autoheight:true, editable:true,
            columns:[{ id:"count", editor:"text"}, {id:"income", editor:"text"}]
       }
    ]  
});
 
$$("data").setValue([
    { "id":"m2", "month":"February", "data":[
        { "income": 2342, "count":14 },
        { "income": 92342, "count":28 },
        { "income": 224442, "count":50 }
    ]},
    { "id":"m3", "month":"March", "data":[
        { "income": 1844, "count":12 },
        { "income": 239242, "count":28 },
        { "income": 440340, "count":20 }
    ]}
]);

See also
Back to top