Quick Search Technical Reference

Summary

  • Quick Search Initial Adaptable State can set search text and a Highlight Style
  • Quick Search Options contains properties to configure Search behaviour
  • Quick Search API provides programmatic access to Quick Search

Quick Search Options

The QuickSearchOptions section of Adaptable Options contains these properties:

PropertyTypeDescriptionDefault
clearQuickSearchOnStartUpbooleanClears saved searches when AdapTable loadsfalse
filterGridAfterQuickSearchbooleanFilters Grid after quick search so only matching rows are displayedfalse
getCellSearchText(quickSearchContext:QuickSearchContext) => string | nullAllows a different value to be used for a cell when searching (instead of its raw value)
isCellSearchable(quickSearchContext:QuickSearchContext) => booleanDetermines whether Quick Search should be applied to a given cell
isQuickSearchCaseSensitivebooleanRun Quick Search using Case Sensitivityfalse
quickSearchPlaceholderstringValue to use as placeholder in QuickSearch controls (e.g. in Dashboard)'Search'

Find Out More

See Configuring Search for further details and examples


Quick Search Initial Adaptable State

The Quick Search section of Adaptable State contains these properties:

PropertyTypeDescription
CellMatchStyleOmit<AdaptableStyle, 'ClassName'>Style used to highlight matching cells
CurrentTextMatchStyleOmit<AdaptableStyle, 'ClassName'>Style used to highlight matching text within current match (not availale in SSRM)
QuickSearchTextstringLast Quick Search that was run (and will be applied at start-up)
TextMatchStyleOmit<AdaptableStyle, 'ClassName'>Style used to highlight matching text within a cell (not availale in SSRM)

Quick Search API

The Quick Search section of Adaptable API contains functions for applying and managing Quick Searches:

MethodReturnsDescription
clearQuickSearch()voidClears Quick Search
getQuickSearchCellMatchStyle()AdaptableStyle | undefinedRetrieves whole-cell style for matching Quick Search cells (undefined when unset on client-side)
getQuickSearchCurrentTextMatchStyle()Omit<AdaptableStyle, 'ClassName'>Retrieves the style for the active Quick Search match (includes run-time default when unset)
getQuickSearchState()QuickSearchStateRetrieves Quick Search section from Adaptable State
getQuickSearchTextMatchStyle()Omit<AdaptableStyle, 'ClassName'>Retrieves the style for matched text within Quick Search results (includes run-time default when unset)
getQuickSearchValue()stringRetrieves current Quick Search text
gotoNextMatch()voidGoes to the next match for the current Quick Search text
gotoPreviousMatch()voidGoes to the previous match for the current Quick Search text
hideFloatingQuickSearch()voidHides the floating Quick Search
openQuickSearchSettingsPanel()voidOpens Settings Panel with Quick Search section selected and visible
runQuickSearch(quickSearchText)voidRuns Quick Search using supplied text
setQuickSearchCellMatchStyle(style)voidSets whole-cell style for Quick Search (SSRM / legacy). Prefer setQuickSearchTextMatchStyle for client-side row models using AG Grid Find.
setQuickSearchCurrentTextMatchStyle(style)voidSets style for the active Quick Search match when cycling results (AG Grid Find)
setQuickSearchTextMatchStyle(style)voidSets style for matched text within Quick Search results (AG Grid Find)
showFloatingQuickSearch()voidOpens the Floating Quick Search