Package io.jmix.flowui.component
Interface SupportsItemsFetchCallback<T,F>
- Type Parameters:
T
- item typeF
- filter type
- All Known Implementing Classes:
EntityComboBox
,JmixComboBox
,JmixMultiSelectComboBox
,JmixMultiSelectComboBoxPicker
public interface SupportsItemsFetchCallback<T,F>
A component that supports a callback for fetching items from a back end.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Callback interface for fetching a stream of items from a backend based on a query. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setItemsFetchCallback
(SupportsItemsFetchCallback.FetchCallback<T, F> fetchCallback) Supply items lazily with a callback from a backend.
-
Method Details
-
setItemsFetchCallback
Supply items lazily with a callback from a backend.- Parameters:
fetchCallback
- function that returns a stream of items from the backend based on the offset, limit and an optional filter provided by the query object
-