View as Markdown

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.

FilterByColumnCommand members (8)
NameSignatureDescription
typetype: 'filter.byColumn';
columnIdcolumnId: ColumnId;
operatoroperator: string;
valueoptionalvalue?: Json;
predicateoptionalpredicate?: 'and' | 'or';
matchCaseoptionalmatchCase?: boolean;
ignoreAccentoptionalignoreAccent?: boolean;
sourceoptionalsource?: FilterSource;