public class SelectHeaderFilter<T> extends Object implements ColumnHeaderFilterPlugin.HeaderFilter<T>
Select
component * @param | Constructor and Description |
|---|
SelectHeaderFilter(String allLabel) |
| Modifier and Type | Method and Description |
|---|---|
SelectHeaderFilter |
appendChild(SelectOption<String> selectOption)
adds a new option to the select
|
void |
clear()
Clears the header filter component value
|
static <T> SelectHeaderFilter<T> |
create()
create a new instance with a default label for ALL option
|
static <T> SelectHeaderFilter<T> |
create(String allLabel)
create a new instance with a custom label for ALL option
|
elemental2.dom.HTMLElement |
element() |
Select<String> |
getSelect() |
void |
init(SearchContext<T> searchContext,
ColumnConfig<T> columnConfig)
Initializes the header filter with the data table search context and the column config to
which the filter is being added
|
public SelectHeaderFilter(String allLabel)
allLabel - String, ALL option labelpublic static <T> SelectHeaderFilter<T> create()
public static <T> SelectHeaderFilter<T> create(String allLabel)
public SelectHeaderFilter appendChild(SelectOption<String> selectOption)
selectOption - the SelectOptionAbstractSelect.appendChild(SelectOption)public void init(SearchContext<T> searchContext, ColumnConfig<T> columnConfig)
this will be called by the ColumnHeaderFilterPlugin
init in interface ColumnHeaderFilterPlugin.HeaderFilter<T>searchContext - SearchContextcolumnConfig - ColumnConfigpublic void clear()
this will be called by the ColumnHeaderFilterPlugin
clear in interface ColumnHeaderFilterPlugin.HeaderFilter<T>public elemental2.dom.HTMLElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>Copyright © 2019–2022 Dominokit. All rights reserved.