跳转到内容

GridFilterPanel API

想要学习更多组件属性和 CSS API,可以查阅 React GridFilterPanel 组件的 API 文档。

导入

import { GridFilterPanel } from '@mui/x-data-grid-premium';
// 或
import { GridFilterPanel } from '@mui/x-data-grid-pro';
// 或
import { GridFilterPanel } from '@mui/x-data-grid';
You can learn about the difference by reading this guide on minimizing bundle size.

组件名称

The name MuiDataGrid can be used when providing default props or style overrides in the theme.

属性

名称类型默认值描述
columnsSort'asc'
| 'desc'
Changes how the options in the columns selector should be ordered. If not specified, the order is derived from the columns prop.
filterFormProps{ columnInputProps?: any, columnsSort?: 'asc'
| 'desc', deleteIconProps?: any, linkOperatorInputProps?: any, operatorInputProps?: any, valueInputProps?: any }
Props passed to each filter form.
linkOperatorsArray<'and'
| 'or'>
[GridLinkOperator.And, GridLinkOperator.Or]
Sets the available logic operators.
sxArray<func
| object
| bool>
| func
| object
The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.

ref 则会被传递到根元素中。

演示项目