GridFilterPanel API
Demos
For examples and details on the usage of this React component, visit the component demo pages:
Import
import GridFilterPanel from '/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterPanel.tsx/GridFilterPanel';
// or
import { GridFilterPanel } from '/packages/grid/x-data-grid/src/components/panel/filterPanel/GridFilterPanel.tsx';Props
Changes how the options in the columns selector should be ordered. If not specified, the order is derived from the columns prop.
Type:
'asc' | 'desc'Props passed to each filter form.
Type:
{ columnInputProps?: any, columnsSort?: 'asc' | 'desc', deleteIconProps?: any, filterColumns?: func, logicOperatorInputProps?: any, operatorInputProps?: any, valueInputProps?: any }Function that returns the next filter item to be picked as default filter.
Type:
funcSignature:
function(args: GetColumnForNewFilterArgs) => voidargsCurrently configured filters and columns.
Sets the available logic operators.
Type:
Array<'and' | 'or'>Default:
[GridLogicOperator.And, GridLogicOperator.Or]The system prop that allows defining system overrides as well as additional CSS styles.
See the `sx` page for more details.
Type:
Array<func | object | bool> | func | objectThe
ref is forwarded to the root element.