Hi, I have set a custom hover text on my Calendar via setMonthViewHoverHTMLCustomizer.
How do I control the width of this hover?
How do I control the width of this hover?
final Canvas properties = new Canvas(); properties.setHoverWidth(500); timeline.setAutoChildProperties("timelineView", properties);
final Canvas properties = new Canvas(); properties.setHoverWidth(1000); timeline.setAutoChildProperties("eventCanvas", properties); timeline.setEventHoverHTMLCustomizer(new EventHoverHTMLCustomizer() { @Override public String getEventHoverHTML(CalendarEvent calendarEvent, EventWindow eventWindow) { DateTimeFormat dtf = DateTimeFormat.getFormat("d/M, yyyy"); String hoverHtml = dtf.format(calendarEvent.getStartDate()) + " - " + dtf.format(calendarEvent.getEndDate()) + "<br>"; hoverHtml += calendarEvent.getName() + "<br>"; hoverHtml += calendarEvent.getDescription(); return hoverHtml; } });
timeline.setEventCanvasHoverHTMLCustomizer(new EventCanvasHoverHTMLCustomizer() { @Override public String getHoverHTML(CalendarEvent calendarEvent, EventCanvas eventCanvas) { DateTimeFormat dtf = DateTimeFormat.getFormat("d/M, yyyy"); String hoverHtml = dtf.format(calendarEvent.getStartDate()) + " - " + dtf.format(calendarEvent.getEndDate()) + "<br>"; hoverHtml += calendarEvent.getName() + "<br>"; hoverHtml += calendarEvent.getDescription(); return hoverHtml; } });
Comment