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

> The ColumnFacet interface of @salmonui/data-grid/engine.

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

```ts
import type { ColumnFacet } 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: interface

```ts
interface ColumnFacet {
    readonly columnId: ColumnId;
    readonly status: 'ready' | 'unavailable';
    readonly values: readonly FacetValue[];
    readonly distinctCount: number;
    readonly selectedCount: number;
    readonly rowCount: number;
    readonly truncated: boolean;
    readonly stale: boolean;
    readonly error: null;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `status` | `readonly status: 'ready' \| 'unavailable';` |  | `unavailable`: the remote source performed filtering; facets must come from the data source. |
| `values` | `readonly values: readonly FacetValue[];` |  |  |
| `distinctCount` | `readonly distinctCount: number;` |  | Distinct values matching `search`, before `offset`/`limit`. |
| `selectedCount` | `readonly selectedCount: number;` |  | Of `distinctCount`, the values the column's current filter keeps (`selected`); lets a paged checklist count its checked values. |
| `rowCount` | `readonly rowCount: number;` |  | Rows passing every other column's filter. |
| `truncated` | `readonly truncated: boolean;` |  |  |
| `stale` | `readonly stale: boolean;` |  |  |
| `error` | `readonly error: null;` |  |  |
