type
CollectionAdmin
Resolved collection presentation, hierarchy, and live-preview metadata.
Properties
| Property | Type | Description |
|---|---|---|
Hidden | bool | Hidden keeps the resource out of the admin's navigation, dashboard, search and routes. It is presentation only. |
UseAsTitle | string | The UseAsTitle value. |
DefaultColumns | []string | The DefaultColumns value. |
Group | string | The Group value. |
GroupTranslations | map[string]string | The GroupTranslations value. |
Description | string | The Description value. |
DescriptionTranslations | map[string]string | The DescriptionTranslations value. |
FolderField | string | The FolderField value. |
ParentField | string | The ParentField value. |
LivePreview | *LivePreview | The LivePreview value. |
How it works
Presentation metadata never authorizes an operation.
Full signature
type CollectionAdmin struct {
// Hidden keeps the resource out of the admin's navigation, dashboard,
// search and routes. It is presentation only.
Hidden bool `json:"hidden,omitempty"`
UseAsTitle string `json:"useAsTitle,omitempty"`
DefaultColumns []string `json:"defaultColumns,omitempty"`
Group string `json:"group,omitempty"`
GroupTranslations map[string]string `json:"groupTranslations,omitempty"`
Description string `json:"description,omitempty"`
DescriptionTranslations map[string]string `json:"descriptionTranslations,omitempty"`
FolderField string `json:"folderField,omitempty"`
ParentField string `json:"parentField,omitempty"`
LivePreview *LivePreview `json:"livePreview,omitempty"`
}