type
Admin
Admin configures how a field is presented and edited in the framework admin. It never grants API access or changes storage behavior; use Access for authorization. A field's Admin method replaces the complete group, while EditAdmin preserves members its callback does not change. Ridu snapshots maps on input and output so retained drafts cannot mutate a published field.
Properties
| Property | Type | Description |
|---|---|---|
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. |
Editor | ComponentRef | The Editor value. |
RowLabel | ComponentRef | The RowLabel value. |
RowLabelPath | string | The RowLabelPath value. |
RowLabels | RowLabels | The RowLabels value. |
LabelTranslations | map[string]string | The LabelTranslations value. |
Tab | string | The Tab value. |
TabTranslations | map[string]string | The TabTranslations value. |
InitiallyCollapsed | bool | The InitiallyCollapsed value. |
CodeLanguage | string | The CodeLanguage value. |
Extensions | map[string]store.Value | The Extensions value. |
VisibleWhen | Condition | VisibleWhen is a finite presentation condition; it never grants access. |
Full signature
type Admin struct {
Description string
DescriptionTranslations map[string]string
Placeholder string
PlaceholderTranslations map[string]string
ReadOnly bool
Hidden bool
Sidebar bool
Columns int
Editor ComponentRef
RowLabel ComponentRef
RowLabelPath string
RowLabels RowLabels
LabelTranslations map[string]string
Tab string
TabTranslations map[string]string
InitiallyCollapsed bool
CodeLanguage string
Extensions map[string]store.Value
// VisibleWhen is a finite presentation condition; it never grants access.
VisibleWhen Condition
}