Home > @polyspec/crudui-validator > ChoicePair
ChoicePair interface
One choice of a choice list (docs/spec/schema.md, "Choice lists"). The option value is the canonical text of value; the list order is the display order for any values.
Signature:
export interface ChoicePair
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Display label of the value. | |||
|
string | number |
Option value: a string or a finite number, distinct by canonical text in its list. |