if my json data retrun format is:
{“departmentList”:[{“id”:3,“name”:“333”},{“id”:2,“name”:“111”},{“id”:1,“name”:“ssss”}]}
how did it add datatable?
if my json data retrun format is:
{“departmentList”:[{“id”:3,“name”:“333”},{“id”:2,“name”:“111”},{“id”:1,“name”:“ssss”}]}
how did it add datatable?
Instead of direct
table.load("data.json")
you can use
webix.ajax("data.json", function(text, data){
table.parse(data.json().departmentList);
});
Such code will load all data, but will use only value of departmentList property as data for a component.
OK,Thanks