B - the type of the component that extends from ValueBox and is wrapped in the
implementationT - the type of the data table recordspublic abstract class DelayedHeaderFilterInput<B extends ValueBox,T> extends Object implements ColumnHeaderFilterPlugin.HeaderFilter<T>
ColumnHeaderFilterPlugin.HeaderFilter for text input
based filters that add a delay for triggering the search while the user is typing| Constructor and Description |
|---|
DelayedHeaderFilterInput()
A constructor that initialized with a default placeholder
|
DelayedHeaderFilterInput(String placeHolder)
A constructor to specify a custom placeholder
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract B |
createValueBox() |
elemental2.dom.HTMLElement |
element() |
B |
getField() |
protected abstract elemental2.dom.HTMLInputElement |
getInputElement() |
protected abstract FilterTypes |
getType() |
protected abstract String |
getValue() |
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
|
protected abstract boolean |
isEmpty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearpublic DelayedHeaderFilterInput()
Search
public DelayedHeaderFilterInput(String placeHolder)
placeHolder - Stringpublic void init(SearchContext<T> searchContext, ColumnConfig<T> columnConfig)
this will be called by the ColumnHeaderFilterPlugin
init in interface ColumnHeaderFilterPlugin.HeaderFilter<T>searchContext - SearchContextcolumnConfig - ColumnConfigprotected abstract elemental2.dom.HTMLInputElement getInputElement()
HTMLInputElement wrapped inside the ValueBox componentprotected abstract B createValueBox()
protected abstract boolean isEmpty()
protected abstract String getValue()
protected abstract FilterTypes getType()
public B getField()
public elemental2.dom.HTMLElement element()
element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>Copyright © 2019–2022 Dominokit. All rights reserved.