Reference
Working with sub components

Working with sub-components

To add a sub-component to a component press the plus under Sub Components and choose the component that should be a sub-component.

To remove a sub-component press the X in the right corner.

You can choose if the users of scenarios should be able to add instances of the sub-component. You control this by adjusting the three settings:

  • Minimum
  • Default
  • Maximum

The default values for the three settings are 1. This means that there will be exactly one instance of the component.

Example:
If minimum is 0, default is 0 and maximum is 3, then the user of the scenario will see 0 instances of the component and will be able to add up to 3 instances. Imagine the component represents a building. Then, in this example, the user can choose if there should be 0, 1, 2 or 3 buildings for the scenario.

Arranging sub-components

You can create your data model and UI structure in many different ways. The recommended way to build your data model is:

Create all your components and name them

Start by creating all the components you need for your data model. This way you can quickly add them as sub-components.

Add sub-components to the root component

Identify the root component. Add 1 or more sub-components to it.

Add sub-components to subsequent levels

Repeat for the other levels and branches in the data model tree you are creating.