use of dashboards.ex1.screen.widgets.VisitsCalendarWidget in project jmix-docs by Haulmont.
the class VisitScheduleAssistant method dashboardEventListener.
@EventListener
public void dashboardEventListener(DashboardUpdatedEvent event) {
// <4>
// <5>
ScreenFragment widget = dashboard.getWidget("visits-calendar");
if (widget instanceof VisitsCalendarWidget) {
// <6>
VisitsCalendarWidget visitsCalendarWidget = (VisitsCalendarWidget) widget;
visitsCalendarWidget.reloadSchedule();
}
}
Aggregations