Custom Detail Components
Detail views can be extended with custom Angular or React components using the registerCustomDetailComponent and registerReactCustomDetailComponent functions.
Any components registered in this way will appear below the main detail form.
The valid locations for embedding custom detail components can be found in the CustomDetailComponentLocationId docs.
Let's imagine that your project has an external content management system (CMS) which is used to store additional details about products. You might want to display some of this information in the product detail page. We will demonstrate the same component in both Angular and React.
1. Create a component
2. Register the component
We can then register the component in our providers.ts file:
When running the Admin UI, the component should now appear in the product detail page:
Manipulating the detail form
The detailForm property is an instance of the Angular FormGroup which can be used to manipulate the form fields, set the validity of the form, mark the form as dirty etc. For example, we could add a button which updates the description field of the product:
