Override views

Some views in the application can be overridden with your own component.

Sometimes the components used by the application do not fit your needs. Some of these can be overridden by providing a Component in the environment file.

In this example I would like to override the component showing the details of a case:

In this case, I add the key viewOverrides to my environment file and provide SpinnerComponent (imported from @valtimo-portal/nl-material) under the key caseDetails.

The result looks like this:

In place of the previous details component, a spinner is now displayed. If you want to know which views can be currently overridden, please use type suggestions under the viewOverrides key in the environment.

Last updated