View as Markdown

API reference: @salmonui/data-grid/engine

FilterMethodstype

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

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

type FilterMethods<Row> = {
    getFacet(ctx: ModuleContext<Row>, columnId: ColumnId, options?: FacetOptions): ColumnFacet | undefined;
    getFilteredRows(ctx: ModuleContext<Row>): readonly Row[];
};
FilterMethods members (2)
NameSignatureDescription
getFacetgetFacet(ctx: ModuleContext<Row>, columnId: ColumnId, options?: FacetOptions): ColumnFacet | undefined;

Distinct values of a column with counts over the rows that pass search and every other column's filter. Computed lazily and cached per (stage input, filter state, column, options).

getFilteredRowsgetFilteredRows(ctx: ModuleContext<Row>): readonly Row[];

Rows passing search and every filter, in sort order, across every page; grouping, expansion, and paging do not apply. Raw references, cached per row model. With a remote source that filtered, the loaded rows.