type

Option

Option is one allowed value and its author-facing label for a select field.

Properties

PropertyTypeDescription
ValuestringValue is the exact string stored in documents and sent over APIs.
LabelstringLabel is the author-facing name shown in selection controls. When omitted, resolution generates it from Value.
LabelTranslationsmap[string]stringLabelTranslations overrides Label for configured admin interface languages.

Full signature

type Option 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. // When omitted, resolution generates it from Value. Label string // LabelTranslations overrides Label for configured admin interface languages. LabelTranslations map[string]string }

Source field/field.go:51

Related guides