Hi, how can i add a button on section in tree mode timeline? I need to add a button next to the section label.
Hello @Bruno_Conke ,
You can add buttons to the timeline label column using the timeline_scale_label
template:
https://docs.dhtmlx.com/scheduler/api__scheduler_{timelinename}_scale_label_template.html
The code may look like follows:
scheduler.templates.timeline_scale_label = function (key, label, section) {
if (section.children == undefined) {
return `${label} <button class="tree_button">Hi</button>`;
}
else {
return label;
}
};
Here is a demo:
http://snippet.dhtmlx.com/5/521202fa6