type
TabDefinition
type TabDefinition struct {
// Name is the optional document property contributed by a data-bearing tab.
Name string
// Label is the author-facing tab trigger.
Label string
// LabelTranslations overrides Label for configured admin interface languages.
LabelTranslations map[string]string
// Fields defines the values shown inside the tab.
Fields []Definition
}One named data-bearing or unnamed presentation-only tab.
Namestring- Name is the optional document property contributed by a data-bearing tab.
Labelstring- Label is the author-facing tab trigger.
LabelTranslationsmap[string]string- LabelTranslations overrides Label for configured admin interface languages.
Fields[]Definition- Fields defines the values shown inside the tab.
Methods
TabDefinition.WithLabelTranslations()WithLabelTranslations returns a detached tab with localized trigger labels.