public class VaadinFiltersKt
| Modifier and Type | Method and Description |
|---|---|
static <T> eu.vaadinonkotlin.vaadin10.FilterRow<T,com.github.vokorm.Filter> |
generateFilterComponents(com.vaadin.flow.component.grid.HeaderRow $receiver,
com.vaadin.flow.component.grid.Grid<T> grid,
kotlin.reflect.KClass<T> itemClass,
eu.vaadinonkotlin.vaadin10.FilterFieldFactory<T,com.github.vokorm.Filter> filterFieldFactory,
com.vaadin.flow.data.value.ValueChangeMode valueChangeMode)
Re-creates filters in this header row. Simply call
grid.appendHeaderRow().generateFilterComponents(grid) to automatically attach
filters to non-generated columns. Please note that filters are not re-generated when the container data source is changed. |
public static <T> eu.vaadinonkotlin.vaadin10.FilterRow<T,com.github.vokorm.Filter> generateFilterComponents(com.vaadin.flow.component.grid.HeaderRow $receiver,
com.vaadin.flow.component.grid.Grid<T> grid,
kotlin.reflect.KClass<T> itemClass,
eu.vaadinonkotlin.vaadin10.FilterFieldFactory<T,com.github.vokorm.Filter> filterFieldFactory,
com.vaadin.flow.data.value.ValueChangeMode valueChangeMode)
Re-creates filters in this header row. Simply call grid.appendHeaderRow().generateFilterComponents(grid) to automatically attach
filters to non-generated columns. Please note that filters are not re-generated when the container data source is changed.
grid - the owner grid.itemClass - the item class as shown in the grid.filterFieldFactory - used to create the filters themselves. If null, DefaultFilterFieldFactory is used.valueChangeMode - how eagerly to apply the filtering after the user changes the filter value. Only applied to HasValueChangeMode;
typically only applies to inline filter
components (most importantly com.vaadin.flow.component.textfield.TextField), typically ignored for popup components (such as com.github.vok.framework.flow.NumberFilterPopup)
where the values are applied after the user clicks the "Apply" button. There are three values: EAGER - apply the value after every keystroke,
ON_CHANGE - apply the value after onblur or when the user presses the Enter button, ON_BLUR - apply the value when the focus leaves the component.