v9.1p_2014-04-10/Pro Deployment (built 2014-04-10)
I have a calendar similar to the Compact Calendar example in the showcase.
I am trying top disable the hover that shows when you mouse over a day with an event.
The docs for setEventHoverHTMLCustomizer say that returning null will suppress the hover completely, but that doesn't seem to work. Infact, if I return a custom string it doesn't change the hover from it's default. Is it referring to a different hover?
So my question is. How do I disable the event hover on my Calendar?
I have a calendar similar to the Compact Calendar example in the showcase.
I am trying top disable the hover that shows when you mouse over a day with an event.
The docs for setEventHoverHTMLCustomizer say that returning null will suppress the hover completely, but that doesn't seem to work. Infact, if I return a custom string it doesn't change the hover from it's default. Is it referring to a different hover?
Code:
final Calendar calendar = new Calendar() { @Override public String getDayBodyHTML(Date date, CalendarEvent[] events, Calendar calendar, int rowNum, int colNum) { String returnStr = date.getDate() + ""; if(events != null && events.length > 0) { int minutes = events[0].getAttributeAsInt("name"); String time = minutes/60 + " hrs " + minutes % 60 + " mins"; returnStr += "<div class=\"calendarText\" style=\"text-align:right\">" + time + "</div>"; } return returnStr; } }; calendar.setWidth100(); calendar.setHeight100(); calendar.setShowDayView(false); calendar.setShowWeekView(false); calendar.setShowOtherDays(false); calendar.setShowDayHeaders(false); calendar.setShowDatePickerButton(false); calendar.setShowAddEventButton(false); calendar.setDisableWeekends(false); calendar.setShowDateChooser(false); calendar.setCanCreateEvents(false); calendar.setFirstDayOfWeek(1); calendar.setDataSource(calendarDS); calendar.setAutoFetchData(true); calendar.setShowHover(false); calendar.setEventHoverHTMLCustomizer(new EventHoverHTMLCustomizer() { @Override public String getEventHoverHTML(CalendarEvent calendarEvent, EventWindow eventWindow) { // Return null to suppress hover return null; } });
Comment