Basic Search

The Search allows the user to filter the displayed rows by entering a search text into the toolbar input. It is enabled by default.

The input is debounced to 200 ms by default, which can be adjusted via the options.

To exclude a specific column from the search, override the customFilterAndSearch prop of the columnLink.

Props#

FieldTypeDescription
options.searchDebounceDelaynumberSets the search debounce. Defaults to 200 ms
options.searchbooleanUsed to disable the search bar, defaults to true
options.searchText'Search'The text to show as a hint for the empty search field
options.searchFieldAlignment'left' /'right'The position of the search text, defaults to 'right'
options.searchFieldStyleReact.CSSPropertiesCSS props to style the input field
options.searchFieldVariant'standard' / 'filled'/ 'outlined'The variant of the input Link
options.searchAutoFocusbooleanFocuses the input on render
column.customFilterAndSearch( filter: string, rowData: RowData, columnDef: Column) => boolean;Optional function to override the default search and filter of each column
options.searchablebooleanPossibility to disable the search for this column