yurash
1
In documentation about spans I only see initial data loading, but how can I add some rows with spans later? I tried
$$('mydt').add({data:
[{"id":1,...},
{"id":2,...},
{"id":3,...}
],
spans:[[1,"mycol",1,3],[2,"mycol",1,3],[3,"mycol",1,3]]
});
but it’s not working
maksim
2
You can create spans in any moment by using addSpan API
http://docs.webix.com/api__ui.datatable_addspan.html
So, in above case, you need to call add
first to create new rows and addSpan
after that, to add spans into the newly created rows.
There is also a removeSpan
command, http://docs.webix.com/api__ui.datatable_removespan.html
yurash
3
It works, thanks!
Although it shows spans only after I added $$(‘mydt’).refresh();