View as Markdown

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;
}
FacetValue members (6)
NameSignatureDescription
keyreadonly key: string;

Stable key: BLANK_FACET_KEY, or a type-tagged value (s:, n:, d:, b:).

valuereadonly value: Json;

Filter value for in / equal (dates as ISO strings); null for blanks.

labelreadonly label: string;

Formatted display value ('' for blanks; the renderer localizes the blank label).

countreadonly count: number;
blankreadonly blank: boolean;
selectedreadonly selected: boolean;

Whether the column's current filter keeps this value (all true when the column is unfiltered).