# FilterByColumnCommand (@salmonui/data-grid/engine)

> The FilterByColumnCommand type of @salmonui/data-grid/engine: filterByColumn(columnId, operator, value): replaces the column's top-level conditions. An array value with an operator other than in, notIn, or between becomes one condition per value combined with or.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/FilterByColumnCommand

```ts
import type { FilterByColumnCommand } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/filter`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: type

```ts
type FilterByColumnCommand = {
    type: 'filter.byColumn';
    columnId: ColumnId;
    operator: string;
    value?: Json;
    predicate?: 'and' | 'or';
    matchCase?: boolean;
    ignoreAccent?: boolean;
    source?: FilterSource;
};
```

`filterByColumn(columnId, operator, value)`: replaces the column's top-level
conditions. An array `value` with an operator other than `in`, `notIn`, or
`between` becomes one condition per value combined with `or`.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'filter.byColumn';` |  |  |
| `columnId` | `columnId: ColumnId;` |  |  |
| `operator` | `operator: string;` |  |  |
| `value` | `value?: Json;` | optional |  |
| `predicate` | `predicate?: 'and' \| 'or';` | optional |  |
| `matchCase` | `matchCase?: boolean;` | optional |  |
| `ignoreAccent` | `ignoreAccent?: boolean;` | optional |  |
| `source` | `source?: FilterSource;` | optional |  |
