type
Choice
type Choice struct {
// Value is the exact string stored in documents and sent over APIs.
Value string
// Label is the author-facing name shown in selection controls.
Label string
// LabelTranslations overrides Label for configured admin interface languages.
LabelTranslations map[string]string
}One select or radio value and optional label.
Valuestring- Value is the exact string stored in documents and sent over APIs.
Labelstring- Label is the author-facing name shown in selection controls.
LabelTranslationsmap[string]string- LabelTranslations overrides Label for configured admin interface languages.
Methods
Choice.WithLabelTranslations()WithLabelTranslations returns a detached choice with localized display labels.