type

FieldAdmin

Serializable field presentation metadata.

Properties

PropertyTypeDescription
Extensionsmap[string]json.RawMessageExtensions are public finite JSON attachments owned by this field.
Editor*FieldEditorThe Editor value.
LabelstringThe Label value.
LabelTranslationsmap[string]stringThe LabelTranslations value.
DescriptionstringThe Description value.
DescriptionTranslationsmap[string]stringThe DescriptionTranslations value.
PlaceholderstringThe Placeholder value.
PlaceholderTranslationsmap[string]stringThe PlaceholderTranslations value.
ReadOnlyboolThe ReadOnly value.
HiddenboolThe Hidden value.
SidebarboolThe Sidebar value.
ColumnsintThe Columns value.
Row*FieldRowThe Row value.
Collapsible*FieldCollapsibleThe Collapsible value.
TabstringThe Tab value.
TabTranslationsmap[string]stringThe TabTranslations value.
TabGroup*FieldTabGroupThe TabGroup value.
NamedTabboolThe NamedTab value.
Condition*FieldConditionThe Condition value.
Component*FieldAdminComponentThe Component value.

How it works

Admin visibility, read-only presentation, and renderer selection are never authorization.

Full signature

type FieldAdmin struct { // Extensions are public finite JSON attachments owned by this field. Extensions map[string]json.RawMessage `json:"extensions,omitempty"` Editor *FieldEditor `json:"editor,omitempty"` Label string `json:"label"` LabelTranslations map[string]string `json:"labelTranslations,omitempty"` Description string `json:"description,omitempty"` DescriptionTranslations map[string]string `json:"descriptionTranslations,omitempty"` Placeholder string `json:"placeholder,omitempty"` PlaceholderTranslations map[string]string `json:"placeholderTranslations,omitempty"` ReadOnly bool `json:"readOnly,omitempty"` Hidden bool `json:"hidden,omitempty"` Sidebar bool `json:"sidebar,omitempty"` Columns int `json:"columns,omitempty"` Row *FieldRow `json:"row,omitempty"` Collapsible *FieldCollapsible `json:"collapsible,omitempty"` Tab string `json:"tab,omitempty"` TabTranslations map[string]string `json:"tabTranslations,omitempty"` TabGroup *FieldTabGroup `json:"tabGroup,omitempty"` NamedTab bool `json:"namedTab,omitempty"` Condition *FieldCondition `json:"condition,omitempty"` Component *FieldAdminComponent `json:"component,omitempty"` }

Source schema/manifest.go:383