not showing custom tooltip

Hi i’ve put this in my code, the timeline is named “timeline” ,
but in the console i get nothing and the tooltip showed it’s always the default.

scheduler.templates.timeline_tooltip = function(start, end, event) {
console.log (“test test”);
return event.text;
};


Hello.

It seems like there is no such template: “timeline_tooltip”. Where have you found such definition, possibly there is problems in documentation?
You could use “tooltip_text” template to set your custom text.
See article:
docs.dhtmlx.com/scheduler/api__s … plate.html
If you want to show such text only on timeline view you could get scheduler mode with getState function.
See article:
docs.dhtmlx.com/scheduler/api__s … state.html
You could save default template and use it if mode isn’t timeline.
For example:
docs.dhtmlx.com/scheduler/snippet/f9f89bbe