show checkbox in section label in timeline view

Hi there,

Please see the attached image. How can I make a check box to show up in the section labels. Check box is shown next to James Smith.

Thanks,
Ajay


You can embed it directly in label ( label can contain HTML ) or use the related template

docs.dhtmlx.com/scheduler/api__s … plate.html

Thanks, It works. I have a follow up questions. I added

scheduler.templates.timeline_scale_label = function(key, label, section){
console.log(“key: " + key + " label:” + label + " section level:" + section.level);
return label + ‘’;
}

When I look at the console logs, I see the duplicate log entries. Do you why there are duplicate log entries?

Also I noticed that the scheduler is re-rendering each time I open or close a section having children. Is my observation correct? Would there be any performance implications when there are more than 20 sections?

Thanks,
Ajay

The scheduler re-renders data while opening and closing branches, that is expected behavior. It must not cause performance issues for 20 sections, as rendering is quite fast operation ( count of row is not so important, having more than 1000 events per view, or more than 100 cells per row may slow down the timeline though )

As for template’s double call - it looks strange, I will try to reconstruct the same behavior locally.