Hi, I have the following code (Im using webix-sidebar as well):
var jobList = {
id: 'jobList',
view: "datatable",
columns: [
{
id: "title",
fillspace: true
},
{
id: "created",
fillspace: true
}
],
};
var sidebar = {
id: 'sidebar',
view: "sidebar",
// setting the data source
data: [
{
icon: "table", value: "Jobs", data: [
{value: "All jobs", id: 'jobs'},
{value: "Post job"}
]
}
]
};
var header = {
view: "template",
template: '<img src=""/>',
type: "header",
height: 'auto'
};
var multiview = {
cells: [
{template: "Specific views here :D"},
jobList,
]
};
var body = {
cols: [
sidebar,
multiview
]
};
var layout = {
rows: [
header,
body
]
};
webix.ready(function () {
webix.ui(layout);
$$('jobList').show();
var d = [{"title":"Home #4904", "created": "date created"}, {"title":"Home #4905", "created": "date created2"}];
$$('jobList').parse(d);
});
The issue is that parse() doesnt update the rows while the ‘jobList’ datatable component is being displayed. Also I see no error in console. I have no clue about this issue.
If instead of webix.ui(layout) I use webix.ui(jobList), then parse() works.
I appreciate your help