Interface LookupFieldFilter<FILTERTYPE>
- Type Parameters:
FILTERTYPE- the type of the filter value produced by this component
public interface LookupFieldFilter<FILTERTYPE>
Class for the custom filter component
The component need to call manually the filter action. For example
filterButton.addClickListener(e -> {
if (fieldFilterAction != null) {
fieldFilterAction.filter(new FILTERTYPE);
}
});
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentReturns the component used to render the filter.voidsetFilterAction(LookupFieldFilterAction<FILTERTYPE> filterAction) Sets the action that the filter component calls to filter the grid.
-
Method Details
-
getComponent
com.vaadin.flow.component.Component getComponent()Returns the component used to render the filter.- Returns:
- Filter component
-
setFilterAction
Sets the action that the filter component calls to filter the grid.- Parameters:
filterAction- action to call when you want to filter the grid
-