MUI 数据网格过滤器

问题描述 投票:0回答:1

我在我的 React 项目中使用 mui datagrid 组件,想要添加“>”和“<'. I couldn't figure out from the documentation. Is there a prop in DataGrid for this?

”过滤器

附注我是 Material ui 新手,正在使用免费版本。

javascript reactjs material-ui mui-x-data-grid
1个回答
0
投票

有一个属性可以传递给列定义,就像在声明列时一样,它与 field、renderCell 相同,称为 filterOperators。 以下链接将帮助您更多地挖掘这个问题 https://mui.com/x/react-data-grid/filtering/customization/#customize-the-operators

© www.soinside.com 2019 - 2024. All rights reserved.