API reference: @salmonui/data-grid
DataGridSearchBoxPropsinterface
import type { DataGridSearchBoxProps } from '@salmonui/data-grid';interface DataGridSearchBoxProps<Row = unknown> {
api?: DataGridApi<Row> | null;
debounce?: number;
placeholder?: string;
'aria-label'?: string;
className?: string;
style?: CSSProperties;
tabIndex?: number;
disabled?: boolean;
title?: string | undefined;
onBeforeSearch?: (event: DataGridSearchBoxSearchEvent) => void;
onFocus?: () => void;
dataAttributes?: Readonly<Record<string, string | number | undefined>>;
hidden?: boolean | undefined;
}
| 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; |