If I have event with a duration <= 30 minutes, the caption contains “:” separator and I am unable to remove it.
Is there a way, to remove the separator with CSS in CalendarEvent.
We need something in the server side to parameter the Calendar Component to disable this part of the caption: calendarEvent.getTimeAsText()separator
Class DateCellDayEvent
/**
* @param bigMode
* If false, event is so small that caption must be in time-row
*/
private void updateCaptions(boolean bigMode) {
String separator = bigMode ? "<br />" : ": ";
caption.setInnerHTML("<span>" + calendarEvent.getTimeAsText()
+ "</span>" + separator
+ Util.escapeHTML(calendarEvent.getCaption()));
eventContent.setInnerHTML("");
}
after that you can just set your own event caption by implementing the getCaption function of the CalendarEvent, don’t forget to call setEventCaptionAsHtml(true) on your calendar object if your getCaption implementation returns html