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

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

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

```ts
import type { FacetValue } 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 FacetValue {
    readonly key: string;
    readonly value: Json;
    readonly label: string;
    readonly count: number;
    readonly blank: boolean;
    readonly selected: boolean;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key: string;` |  | Stable key: `BLANK_FACET_KEY`, or a type-tagged value (`s:`, `n:`, `d:`, `b:`). |
| `value` | `readonly value: Json;` |  | Filter value for `in` / `equal` (dates as ISO strings); null for blanks. |
| `label` | `readonly label: string;` |  | Formatted display value ('' for blanks; the renderer localizes the blank label). |
| `count` | `readonly count: number;` |  |  |
| `blank` | `readonly blank: boolean;` |  |  |
| `selected` | `readonly selected: boolean;` |  | Whether the column's current filter keeps this value (all true when the column is unfiltered). |
