# DataGridSearch (@salmonui/data-grid)

> The DataGridSearch interface of @salmonui/data-grid: search prop.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridSearch

```ts
import type { DataGridSearch } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridSearch {
    text?: string;
    fields?: readonly string[];
    operator?: 'contains' | 'startsWith' | 'endsWith' | 'equal' | 'notEqual' | 'wildcard' | 'like';
    matchCase?: boolean;
    ignoreAccents?: boolean;
    highlight?: boolean;
}
```

`search` prop.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `text?: string;` | optional |  |
| `fields` | `fields?: readonly string[];` | optional | Columns searched. Default: every searchable non-date column. |
| `operator` | `operator?: 'contains' \| 'startsWith' \| 'endsWith' \| 'equal' \| 'notEqual' \| 'wildcard' \| 'like';` | optional | Default `contains`. `wildcard` (`*` any sequence, `?` one character) and `like` (`%` any sequence) match the whole value. |
| `matchCase` | `matchCase?: boolean;` | optional | Default false. |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional | Default false. |
| `highlight` | `highlight?: boolean;` | optional | Wraps the matches of the applied search in `<mark class="salmon-data-grid-search-mark">` in the displayed text of rendered cells of the searched columns (not in `renderCell` templates). Default false; no cost while off. |
