UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the Data Grid components (MUI X).

46 lines 1.85 kB
import * as React from 'react'; import { TextFieldProps } from "../../models/gridBaseSlots.js"; import { GridFilterModel } from "../../models/gridFilterModel.js"; export type GridToolbarQuickFilterProps = { className?: string; /** * Function responsible for parsing text input in an array of independent values for quick filtering. * @param {string} input The value entered by the user * @returns {any[]} The array of value on which quick filter is applied * @default (searchText: string) => searchText * .split(' ') * .filter((word) => word !== '') */ quickFilterParser?: (input: string) => any[]; /** * Function responsible for formatting values of quick filter in a string when the model is modified * @param {any[]} values The new values passed to the quick filter model * @returns {string} The string to display in the text field * @default (values: string[]) => values.join(' ') */ quickFilterFormatter?: (values: NonNullable<GridFilterModel['quickFilterValues']>) => string; /** * The debounce time in milliseconds. * @default 150 */ debounceMs?: number; slotProps?: { root: TextFieldProps; }; }; /** * @deprecated Use the {@link https://mui.com/x/react-data-grid/components/quick-filter/ Quick Filter} component instead. This component will be removed in a future major release. */ declare function GridToolbarQuickFilter(props: GridToolbarQuickFilterProps): React.JSX.Element; declare namespace GridToolbarQuickFilter { var propTypes: any; } /** * Demos: * - [Filtering - overview](https://mui.com/x/react-data-grid/filtering/) * - [Filtering - quick filter](https://mui.com/x/react-data-grid/filtering/quick-filter/) * * API: * - [GridToolbarQuickFilter API](https://mui.com/x/api/data-grid/grid-toolbar-quick-filter/) */ export { GridToolbarQuickFilter };