QuickSearchState

View as Markdown

Quick Search section of Adaptable State, including Initial State.

QuickSearchText is the search restored at startup. CellMatchStyle highlights matching cells. TextMatchStyle and CurrentTextMatchStyle highlight the matching text inside a cell; those two styles are not available with the Server-Side Row Model.

TypeScript
export interface QuickSearchState extends
Extends

BaseState

Properties

PropertyTypeDescriptionDefault
CellMatchStyleOmit<AdaptableStyle, 'ClassName'>Style used to highlight matching cells
CurrentTextMatchStyleOmit<AdaptableStyle, 'ClassName'>Style used to highlight the current match within a cell (not available with the Server-Side Row Model)var(--ab-color-quick-search-current-match) background, var(--ab-color-quick-search-current-match-foreground) text, bold
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 available with the Server-Side Row Model)var(--ab-color-quick-search-match) background and var(--ab-color-quick-search-match-foreground) text

Property Details

CellMatchStyle

Style used to highlight matching cells

TypeScript
CellMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
Property Value

Omit<AdaptableStyle, 'ClassName'>

CurrentTextMatchStyle

Style used to highlight the current match within a cell (not available with the Server-Side Row Model)

TypeScript
CurrentTextMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
Default Value

var(--ab-color-quick-search-current-match) background, var(--ab-color-quick-search-current-match-foreground) text, bold

Property Value

Omit<AdaptableStyle, 'ClassName'>

QuickSearchText

Last Quick Search that was run (and will be applied at start-up)

TypeScript
QuickSearchText?: string;
Property Value

string

TextMatchStyle

Style used to highlight matching text within a cell (not available with the Server-Side Row Model)

TypeScript
TextMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
Default Value

var(--ab-color-quick-search-match) background and var(--ab-color-quick-search-match-foreground) text

Property Value

Omit<AdaptableStyle, 'ClassName'>