View as Markdown

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

DataGridSearchBox props (13)
NameSignatureDescription
apioptionalapi?: DataGridApi<Row> | null;

The grid to search when rendered outside its subtree.

debounceoptionaldebounce?: number;

Delay before typed text applies, in ms. Default 0 (Enter always applies at once).

placeholderoptionalplaceholder?: string;
aria-labeloptional'aria-label'?: string;

Accessible name of the search landmark. Default localeText.searchLabel.

classNameoptionalclassName?: string;
styleoptionalstyle?: CSSProperties;
tabIndexoptionaltabIndex?: number;

Roving tab index from a host (the toolbar).

disabledoptionaldisabled?: boolean;
titleoptionaltitle?: string | undefined;
onBeforeSearchoptionalonBeforeSearch?: (event: DataGridSearchBoxSearchEvent) => void;

Called before each search is applied; event.preventDefault() skips it (like grid before-events).

onFocusoptionalonFocus?: () => void;
dataAttributesoptionaldataAttributes?: Readonly<Record<string, string | number | undefined>>;

Extra attributes on the landmark (toolbar item hooks).

hiddenoptionalhidden?: boolean | undefined;