Checked this version out with Vaadin 14.0.5 npm.
Looks good with Firefox and Chrome.
Great work, thanks !
Detected strange geometry effects with IE11 ( sorry, I still need to support this old stuff ), just first colum of calendar grid is indicated and horizontal scrollbar is shown with huge width.
Also I observed latency effects with all browsers ( I use month view with several dozens of entries per month )
Cannot tell why this is happening. Have you tried the official FC demos: https://fullcalendar.io/#demos ?
not yet, but will check it out, when i have returned from holliday ;)
Checked fullcalender.io7#demos with IE11. This looks fine.
With current Vaadin Version 14.0.9, IE11 seems to be broken, so I cannot figure what happens with the fullcalendar 4 web component.
Latency effects can be easily check with the following code
FullCalendar calendar = FullCalendarBuilder.create().build();
calendar.setHeightFull();
calendar.changeView(CalendarViewImpl.DAY_GRID_MONTH);
calendar.setLocale(Locale.GERMAN);
add(calendar);
for ( int i= 0; i < 100; i++ )
{
Entry entry = new Entry();
entry.setTitle("Some event " + i); entry.setStart(LocalDate.now().withDayOfMonth(3).atTime(10, 0), calendar.getTimezone());
entry.setEnd(entry.getStart().plusHours(2 + i), calendar.getTimezone());
entry.setColor("#ff3333");
calendar.addEntry(entry);
}
System.out.println("Events added");
After the system message is printed, it still takes several seconds until the calender is indicated in the browser.
Bjoern,
Every call to addEntry will result in a separate Json payload to the client and they are sent individually.
You can speed it up tremendously by adding all your entries to a collection and then call addEntries()
Thanks for the hint.
With an easy array conversion, I achieved significant speedup.
SysMTMaintainCalendarEvent[] array
= _mtList.stream().toArray( n -> new SysMTMaintainCalendarEvent[n]
);
_calendar.addEntries(array);