function
Select
func Select(
name string,
options ...SelectOption,
) DefinitionDefine a string constrained to configured choices.
Example
field.Select(
"status",
field.OneOf("draft", "published"),
field.Default("draft"),
)Related types
SelectOptionOptions accepted by Select and Radio.
DefinitionAn immutable authored field definition.