API reference: @salmonui/data-grid
DataGridSearchBoxcomponent
import { DataGridSearchBox } from '@salmonui/data-grid';function DataGridSearchBox<Row = unknown>(props: DataGridSearchBoxProps<Row>): import("react").JSX.Element;
Props: DataGridSearchBoxProps
| Name | Signature | Description |
|---|---|---|
apioptional | api?: DataGridApi<Row> | null; | The grid to search when rendered outside its subtree. |
debounceoptional | debounce?: number; | Delay before typed text applies, in ms. Default 0 (Enter always applies at once). |
placeholderoptional | placeholder?: string; | |
aria-labeloptional | 'aria-label'?: string; | Accessible name of the search landmark. Default |
classNameoptional | className?: string; | |
styleoptional | style?: CSSProperties; | |
tabIndexoptional | tabIndex?: number; | Roving tab index from a host (the toolbar). |
disabledoptional | disabled?: boolean; | |
titleoptional | title?: string | undefined; | |
onBeforeSearchoptional | onBeforeSearch?: (event: DataGridSearchBoxSearchEvent) => void; | Called before each search is applied; |
onFocusoptional | onFocus?: () => void; | |
dataAttributesoptional | dataAttributes?: Readonly<Record<string, string | number | undefined>>; | Extra attributes on the landmark (toolbar item hooks). |
hiddenoptional | hidden?: boolean | undefined; |