type
FieldAdmin
Serializable field presentation metadata.
Properties
| Property | Type | Description |
|---|---|---|
Extensions | map[string]json.RawMessage | Extensions are public finite JSON attachments owned by this field. |
Editor | *FieldEditor | The Editor value. |
Label | string | The Label value. |
LabelTranslations | map[string]string | The LabelTranslations value. |
Description | string | The Description value. |
DescriptionTranslations | map[string]string | The DescriptionTranslations value. |
Placeholder | string | The Placeholder value. |
PlaceholderTranslations | map[string]string | The PlaceholderTranslations value. |
ReadOnly | bool | The ReadOnly value. |
Hidden | bool | The Hidden value. |
Sidebar | bool | The Sidebar value. |
Columns | int | The Columns value. |
Row | *FieldRow | The Row value. |
Collapsible | *FieldCollapsible | The Collapsible value. |
Tab | string | The Tab value. |
TabTranslations | map[string]string | The TabTranslations value. |
TabGroup | *FieldTabGroup | The TabGroup value. |
NamedTab | bool | The NamedTab value. |
Condition | *FieldCondition | The Condition value. |
Component | *FieldAdminComponent | The 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"`
}