type

ComponentRef

ComponentRef selects a custom admin component and its optional settings. It changes the UI without changing how the field's value is stored or typed.

Properties

PropertyTypeDescription
KeystringThe Key value.
PluginKeystringThe PluginKey value.
Configstore.ValueThe Config value.

Full signature

type ComponentRef struct { Key string PluginKey string Config store.Value configArguments int }

Source field/policy.go:197

Methods

  • ComponentRef.Err()

    Err validates static component syntax and finite public object configuration. Omitted configuration is allowed; explicitly supplied zero or null values are not objects. Registration and supported host checks belong to configuration resolution.

  • ComponentRef.MarshalJSON()

    MarshalJSON encodes only public static component data. An unspecified reference is null and absent configuration is omitted.