Hello,
I want to show tooltip on only task area, not grid.
How it’s possible?
Hello,
You need to change onMouseMove event in tooltip extension file tooltip.js to the next:
t.attachEvent("onMouseMove", function(e, i) {
if (i.clientX > gantt.config.grid_width) {
if (this.config.tooltip_timeout) {
document.createEventObject && !document.createEvent && (i = document.createEventObject(i));
var n = this.config.tooltip_timeout;
this._tooltip_id && !e && (isNaN(this.config.tooltip_hide_timeout) || (n = this.config.tooltip_hide_timeout)),
clearTimeout(t._tooltip_ev_timer), t._tooltip_ev_timer = setTimeout(function() {
t._init_tooltip(e, i)
}, n)
} else t._init_tooltip(e, i)
}
})
Please, see example:
docs.dhtmlx.com/gantt/snippet/87639d79