I'm using MaterialUI's DataGrid for React and I have created a custom filter operator for one of the columns.
I was able to add it to the column as mentioned in the documentation and it's working fine, however, this removed the other default operators (contains, equal, etc...).
This is how I did it:
columns: GridColDef[] = [
{
field: 'myFieldName',
headerName: 'Column name',
filterOperators: [MyCustomOperator],// this is the custom operator I have created
}
]
How to append my custom operator and keep other operators?