# QuickSearchState

Canonical page: https://www.adaptabletools.com/docs/reference/quicksearchstate

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.

```ts title="TypeScript"
export interface QuickSearchState extends BaseState 
```

###### Extends

[`BaseState`](https://www.adaptabletools.com/docs/reference/basestate.md)

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [CellMatchStyle](https://www.adaptabletools.com/docs/reference/quicksearchstate.md#cellmatchstyle) | `Omit<`[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, 'ClassName'>` | Style used to highlight matching cells |   |
| [CurrentTextMatchStyle](https://www.adaptabletools.com/docs/reference/quicksearchstate.md#currenttextmatchstyle) | `Omit<`[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, '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 |
| [QuickSearchText](https://www.adaptabletools.com/docs/reference/quicksearchstate.md#quicksearchtext) | `string` | Last Quick Search that was run (and will be applied at start-up) |   |
| [TextMatchStyle](https://www.adaptabletools.com/docs/reference/quicksearchstate.md#textmatchstyle) | `Omit<`[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, '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

```ts title="TypeScript"
CellMatchStyle?: Omit<AdaptableStyle, 'ClassName'>;
```

###### Property Value

`Omit<`[`AdaptableStyle`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, 'ClassName'>`

### CurrentTextMatchStyle

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

```ts title="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`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, 'ClassName'>`

### QuickSearchText

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

```ts title="TypeScript"
QuickSearchText?: string;
```

###### Property Value

`string`

### TextMatchStyle

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

```ts title="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`](https://www.adaptabletools.com/docs/reference/adaptablestyle.md)`, 'ClassName'>`
