Button next to a section timeline view


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:

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: