ChoiceSchemaOptionsinterface
{
readonly options: PossibleChoiceOptions<O>;
readonly value?: O | I;
readonly input?: ChoiceInputType | undefined;
}| Property | Type | |
|---|---|---|
.options | PossibleChoiceOptions<O> | Specify correct options using a dictionary of entries. required readonly |
.value | OI | Default option for the value. readonly |
.input | ChoiceInputType | Input control hint for downstream UIs. Defaults to "radio" for 8 or fewer options, otherwise "select" readonly |
Options for ChoiceSchema.
options— the allowed choices, as a{ key: title }dictionary or an array of keys.value— default option used when the input isundefined.input— control hint for downstream UIs (radios or a select).