By registering custom Angular components in the Valtimo front-end implementation these components can be used within case widgets. The output of the component will be displayed as the content of a widget.
Register component
The custom component widget is meant to display any custom Angular component that you may need. There is a prerequisite for being able to configure this kind of widget. You need to register your custom component through our injection token available in @valtimo/layout.
In order to do this the following needs to be added to the app.module file in the codebase of the front-end implementation.
Below is an example of a custom component. The widgetConfiguration property is always injected by the custom-widget component and contains the configuration of the custom-widget.
The category and status are additional input properties specific for this custom component, if the component does not need them, don't define them. The values for these properties need to be specified via the custom-widgets configuration 'custom key-value pairs' collection.