Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tom on Jun 30, 2009 07:17
open dhtmlx forum
dhtmlxScheduler - tooltips

Is it possible to add a tooltip to a scheduled event? Thinking along the same lines as how event content is defined, one could envision something like:

scheduler.templates.event_tooltip=function(start,end,event){
return "Text:<b> "+event.text+"</b><br>"+"Descr."+event.details;
}

The basic idea is that since events can easily contain more information then they display, consider 5 back to back 30 minute meetings, it can be useful to just hover over an event to examine the contents of the event.

Thanks,
-Tom
Answer posted by Support on Jun 30, 2009 07:34
The native tooltips  of browser will not allow to use html formatted content and will show all data as single line (only IE supports multiline tooltips ), so you will not able to show a lot of data in tooltip in any case. 
By using "event_text" template, you already  can define custom tooltip by using

scheduler.templates.event_text=function(start,end,event){
            return "<span title='"+event.text+"'>"+event.text+"</span>";
}