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

PropertyTypeDescription
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.
EditorComponentRefThe Editor value.
RowLabelComponentRefThe RowLabel value.
RowLabelPathstringThe RowLabelPath value.
RowLabelsRowLabelsThe RowLabels value.
LabelTranslationsmap[string]stringThe LabelTranslations value.
TabstringThe Tab value.
TabTranslationsmap[string]stringThe TabTranslations value.
InitiallyCollapsedboolThe InitiallyCollapsed value.
CodeLanguagestringThe CodeLanguage value.
Extensionsmap[string]store.ValueThe Extensions value.
VisibleWhenConditionVisibleWhen 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 }

Source field/policy.go:285

Related guides