T - the type of the data table recordspublic static class HeaderBarPlugin.SearchTableAction<T> extends Object implements HeaderActionElement<T>
| Constructor and Description |
|---|
SearchTableAction()
creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.Node |
asElement(DataTable<T> dataTable)
initialize the element for this action
|
int |
getAutoSearchDelay() |
void |
handleEvent(TableEvent event) |
boolean |
isAutoSearch() |
HeaderBarPlugin.SearchTableAction<T> |
setAutoSearch(boolean autoSearch)
Enable/Disable auto search when enabled the search will triggered while the user is typing
with a delay otherwise the search will only be triggered when the user click on search or
press Enter
|
void |
setAutoSearchDelay(int autoSearchDelayInMillies) |
HeaderBarPlugin.SearchTableAction<T> |
setClearSearchToolTip(String clearSearchToolTip)
Set the clear search icon tooltip
|
HeaderBarPlugin.SearchTableAction<T> |
setSearchToolTip(String searchToolTip)
Set the search icon tooltip
|
public boolean isAutoSearch()
public HeaderBarPlugin.SearchTableAction<T> setAutoSearch(boolean autoSearch)
autoSearch - booleanpublic int getAutoSearchDelay()
public void setAutoSearchDelay(int autoSearchDelayInMillies)
autoSearchDelayInMillies - int auto search delay in millisecondspublic void handleEvent(TableEvent event)
handleEvent in interface TableEventListenerhandleEvent in interface HeaderActionElement<T>event - the TableEvent being receivedpublic elemental2.dom.Node asElement(DataTable<T> dataTable)
asElement in interface HeaderActionElement<T>dataTable - the DataTable we are attaching the plugin toNode representing this action elementpublic HeaderBarPlugin.SearchTableAction<T> setSearchToolTip(String searchToolTip)
searchToolTip - Stringpublic HeaderBarPlugin.SearchTableAction<T> setClearSearchToolTip(String clearSearchToolTip)
clearSearchToolTip - StringCopyright © 2019–2022 Dominokit. All rights reserved.