use of io.jmix.dashboardsui.event.ItemsSelectedEvent in project jmix by jmix-framework.
the class DashboardImpl method assignItemSelectedHandler.
private void assignItemSelectedHandler(LookupWidget widget) {
ListComponent lookupComponent = widget.getLookupComponent();
DataUnit items = lookupComponent.getItems();
if (items != null) {
items.addStateChangeListener(e -> {
uiEventPublisher.publishEvent(new ItemsSelectedEvent((Widget) widget, lookupComponent.getSelected()));
});
}
}
Aggregations