# FilterMethods (@salmonui/data-grid/engine)

> The FilterMethods type of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/FilterMethods

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

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: type

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

Members (2):

| Name | Signature | Flags | 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. |
