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.

Source field/field.go:49

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