API reference: @salmonui/data-grid/engine
FacetValueinterface
import type { FacetValue } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/filter.
interface FacetValue {
readonly key: string;
readonly value: Json;
readonly label: string;
readonly count: number;
readonly blank: boolean;
readonly selected: boolean;
}
| Name | Signature | Description |
|---|---|---|
key | readonly key: string; | Stable key: |
value | readonly value: Json; | Filter value for |
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). |