API reference: @salmonui/data-grid
DataGridSearchinterface
import type { DataGridSearch } from '@salmonui/data-grid';interface DataGridSearch {
text?: string;
fields?: readonly string[];
operator?: 'contains' | 'startsWith' | 'endsWith' | 'equal' | 'notEqual' | 'wildcard' | 'like';
matchCase?: boolean;
ignoreAccents?: boolean;
highlight?: boolean;
}
search prop.
| Name | Signature | Description |
|---|---|---|
textoptional | text?: string; | |
fieldsoptional | fields?: readonly string[]; | Columns searched. Default: every searchable non-date column. |
operatoroptional | operator?: 'contains' | 'startsWith' | 'endsWith' | 'equal' | 'notEqual' | 'wildcard' | 'like'; | Default |
matchCaseoptional | matchCase?: boolean; | Default false. |
ignoreAccentsoptional | ignoreAccents?: boolean; | Default false. |
highlightoptional | highlight?: boolean; | Wraps the matches of the applied search in |