Background of tool-tip

Hello Team,

how can i change the background of the dhtmlx tool-tp, i have intgrated different colors for event that works fine but the tooltip is not on that color.
i want to change this dynamically.

Thanks

Hi,

just redefine the style in your .CSS file for the element :
.dhtmlXTooltip .tooltip {
background-color: …
}
Example of standard tooltip :

Event: Task D-52688
Start date: 2009-06-30 09:20
End date: 2009-06-30 12:20

Hi,

Thanks for reply but my question is how can set the back-ground of tool-tip dynamically.
i want to set black for few Events and red for few and rest in some other colors. changing css changes for all.

Thanks

Hi,

just use scheduler.templates.tooltip_text, for ex. :

[code].dhtmlXTooltip.tooltip {
padding: 0px;
}
.tooltip_red{
background-color: crimson;
color: white;
padding: 10px;
}

scheduler.templates.tooltip_text = function(start,end,ev){
// your condition : if(ev… === …)
return “

TEXT
”;
};[/code]