The compound field is used to display a specified compound that is defined at the functionality level. The purpose of a compound field is to create a single field that’s reusable that combines multiple fields as one in a custom layout.
Below is an example of a compound field for a Canadian address:
Component Code
The first section of the code are where variables and parameters are defined. Below are the various methods used in the compound component.
OnParametersSetAsync()
This method is triggered when the component is first loaded and if the parent component is updated. Currently this method doesn’t do anything outside of its default implementation.