API reference: @salmonui/data-grid/engine
FilterByColumnCommandtype
import type { FilterByColumnCommand } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/filter.
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.
| Name | Signature | Description |
|---|---|---|
type | type: 'filter.byColumn'; | |
columnId | columnId: ColumnId; | |
operator | operator: string; | |
valueoptional | value?: Json; | |
predicateoptional | predicate?: 'and' | 'or'; | |
matchCaseoptional | matchCase?: boolean; | |
ignoreAccentoptional | ignoreAccent?: boolean; | |
sourceoptional | source?: FilterSource; |