Interface CallbackCalendarDataProvider
- All Superinterfaces:
CalendarDataProvider
- All Known Implementing Classes:
CalendarDataRetriever
,EntityCalendarDataRetriever
Interface to be implemented by data providers that should load items by request.
The onItemsFetch(ItemsFetchContext)
is called in the following cases:
- When the user switches to the calendar display mode that has wider date range than previous one.
-
When
FullCalendar
's navigation methods are invoked, e.g.JmixFullCalendar.navigateToNext()
. - When time zone of component is changed.
FullCalendar
calls onItemsFetch(ItemsFetchContext)
immediately after adding
the provider. If calendar is not attached to the UI, the callback will be invoked after attaching component
to the UI.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A fetch context that is used for loading events. -
Method Summary
Modifier and TypeMethodDescriptionA callback method that is invoked byFullCalendar
, for instance, when the user navigates to next/previous dates.Methods inherited from interface io.jmix.fullcalendarflowui.component.data.CalendarDataProvider
getId
-
Method Details
-
onItemsFetch
A callback method that is invoked byFullCalendar
, for instance, when the user navigates to next/previous dates.- Parameters:
context
- context that contains information about date range- Returns:
- a list of fetched calendar events
-