I can update the timeline using updateCollection but can I update a single row?
Can I write something like
scheduler.timelinesections[key].label = "updated text";
I can update the timeline using updateCollection but can I update a single row?
Can I write something like
scheduler.timelinesections[key].label = "updated text";
Hi,
for the scheduelr there is no difference between updating a single item or a full set of sections, in either case timeline is completely redrawn using new sections info.
You can make a copy of current sections and modify the needed one
var list = scheduler.serverList("timeline_data").slice();//copy current sections
for(var i = 0; i < list.length; i++){
if(list[i].key == some_value){
...//find and update needed item
}
}
scheduler.updateCollection("timeline_data", list);