I have added several custom layers to my task using gantt.addTaskLayer. Now I want to spend each Layer its own tooltip. I display each employee as task and each holiday of that employee as individual layer. All layers of the same employee are displayed on the same vertical position.
When using the title attribute of HTML element this is not the same as using gantt.templates.tooltip_text, which is what I like to use for the custom layers too. How can I use this for the custom layers and display individual tooltips for each layer?
Your suggestion is very similar to what I try. But making the tooltip a child of the layer makes it impossible to set overflow=hidden, because otherwise the tooltip is truncated too. In the original layers overflow is hidden.
I also tried with nested DIV putting content div and tooltip DIV into the outer DIV and making overlow of content DIV being “hidden”, but this did not work.
The reason why i want to make overflow hidden for content, is to prevent it from being rendered outside of the DIV. The original gantt bars also have overflow = hidden for the same reason.