Skip to content

I there a way to change the filter operator? #810

@cococov

Description

@cococov

Custom filter component:

      filterComponent: ({ columnDef, onFilterChanged }) => (
        <TextField
          variant="standard"
          onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
            onFilterChanged(columnDef.tableData.id, e.target.value); // send here the operator
          }}
        />
      ),

Filter object in query for async pagination:

{ column: 'some_column', operator: '=', value: 'something' } // <-- The operator is always '='

Question

Is there a way to change the operator for something else, like <, >, ~=, etc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions