CRUDUI

Home > @polyspec/crudui-validator > ItemLabelMap

ItemLabelMap type

Static value→label map (SPEC §2 G3): the key is the option value (the membership target), the entry is its display label — a string or a LangMap, e.g. { "0": { ko: 'Off label', en: 'Off' }, "1": { ko: 'On label', en: 'On' } }. The label is display-only; a LangMap label is NOT a membership value.

Signature:

export type ItemLabelMap = Record<string, ItemLabel>;

References: ItemLabel