T - type of data table recordspublic class BooleanHeaderFilter<T> extends Object implements ColumnHeaderFilterPlugin.HeaderFilter<T>
Select component| Constructor and Description |
|---|
BooleanHeaderFilter() |
BooleanHeaderFilter(String trueLabel,
String falseLabel,
String bothLabel) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the header filter component value
|
static <T> BooleanHeaderFilter<T> |
create()
Creates an instance with default labels ALL,Yes,No
|
static <T> BooleanHeaderFilter<T> |
create(String trueLabel,
String falseLabel,
String bothLabel)
Creates an instance with specified labels
|
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 BooleanHeaderFilter()
create()public BooleanHeaderFilter(String trueLabel, String falseLabel, String bothLabel)
trueLabel - String, the label for the Yes optionfalseLabel - String, the label for the No optionbothLabel - String, the label for the ALL optioncreate(String, String, String)public static <T> BooleanHeaderFilter<T> create()
T - the data table records typepublic static <T> BooleanHeaderFilter<T> create(String trueLabel, String falseLabel, String bothLabel)
T - the data table records typetrueLabel - String, the label for the Yes optionfalseLabel - String, the label for the No optionbothLabel - String, the label for the ALL optionpublic 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.