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[];
};
| Name | Signature | Description |
|---|---|---|
getFacet | getFacet(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). |
getFilteredRows | getFilteredRows(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. |