View as Markdown

API reference: @salmonui/data-grid/engine

CustomFilterOperatortype

import type { CustomFilterOperator } from '@salmonui/data-grid/engine';

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

type CustomFilterOperator<Row = unknown> = (value: unknown, filterValue: Json, ctx: CustomOperatorContext<Row>) => boolean;

Custom operator: a pure function of one cell value. It runs once per distinct value of the column, not once per row, so it must not depend on other fields of the row.