interface
FieldPlugin
interface FieldPlugin { ... }A renderer matched against a manifest field.
Source packages/plugin/src/index.ts:7
typeFieldType- The type value.
keystring- The key value.
componentKeystring- Named renderer selected by field.admin.component for built-in field semantics.
componentComponent<FieldComponentProps, {}, string>- The component value.
canRender(field: SchemaField) => boolean- The canRender value.
Use type: "plugin" plus key for a paired custom field. For a built-in field renderer, key and componentKey must exactly match field.admin.component; canRender may add a narrower predicate. component is optional so a registration can participate in matching without replacing rendering.
Methods
FieldPlugin.canRender()Public method FieldPlugin.canRender from @riducms/plugin.
FieldPlugin.component()Public method FieldPlugin.component from @riducms/plugin.