DHTMLX Docs & Samples Explorer

setTooltip(date, text, showIcon, usePopup)

Sets the tooltip for the specified date(s)

Parameters:

  • date - the date you want to set the tooltip for. Date object or string in current format (or array with dates)
  • text - the tooltip text
  • showIcon - true / false (default), show icon in top-right corner of cell (will help user to determine that something can happen on mouseover)
  • usePopup - true / false (default), true to use dhtmlXPopup (you also need to include it on page), false to use browser's title attr
myCalendar.setTooltip(new Date(2013,01,04), "some text");

See also:

Description:

There are several ways to set the date in the method:

// sets a single day
myCalendar.setTooltip("2011-06-01", "some text");
// or
myCalendar.setTooltip(new Date(2011,5,1), "some text");
 
// sets several days
myCalendar.setTooltip(["2011-06-01", "2011-06-02", "2011-06-03"], "some text");
// or
myCalendar.setTooltip([new Date(2011,5,1), new Date(2011,5,2), new Date(2011,5,3)], "some text");