The UI (user interface) Field gives you a ton of power to add your own React components directly into the Admin Panel, nested directly within your other fields. It has absolutely no effect on the data of your documents. It is presentational-only. Think of it as a way for you to "plug in" your own React components directly within your other fields, so you can provide your editors with new controls exactly where you want them to go.
With the UI Field, you can:
refund
endpointTo add a UI Field, set the type
to ui
in your Field Config:
Option | Description |
---|---|
name * | A unique identifier for this field. |
label | Human-readable label for this UI field. |
admin.components.Field * | React component to be rendered for this field within the Edit View. More |
admin.components.Cell | React component to be rendered as a Cell within collection List views. More |
admin.disableListColumn | Set disableListColumn to true to prevent the UI field from appearing in the list view column selector. |
custom | Extension point for adding custom data (e.g. for plugins) |
* An asterisk denotes that a property is required.
collections/ExampleCollection.ts