Reference
Components

Components

With your tool, you can create a data model and interactive UI to be used in scenarios. You use components to create these elements. You can use Blank components to create placeholders for parameters and subcomponents and you can use Container components to create a tab-interface for other components.

Using Blank components and subcomponents you can create a data model in a tree structure.

Tree structure data model Figure 1: Tree structure data model

This data model can encompass many types of data structures and there is no limit to how deep your structure can be. The data model can be referenced in your code.

The data model based on components is also a visual UI that you can present to your users. On the parameters and components, you can set visibility, default values and interactability and thereby build up a complex user interface for users of scenarios.

Screenshot of the interactive UI on the scenario page created by the data model Figure 2: Screenshot of the interactive UI on the scenario page created by the data model

The above user interface in the scenario corresponds to the tree structure data model in figure 1. This was created using sub-components.

Types of components

You can choose between 4 component types:

ComponentDescription
Blank componentThe default component, that you are going to use most of the time
FMU componentA special component for running simulations on FMU files. FMU files contain their own parameter definitions, so the only thing you have to do is select or upload a FMU file.
Library componentUnder library components, you can choose predefined components. Read more here, component library.
ContainerA container is a component type that can contain other components. This makes it possible to set up the scenario page with tabs for the components in the container.

Blank Component

See Blank component

Container Component

See Container component

Sub Components

See Sub components

Add Component

To add a component to a tool, go to the tool and click the + Add Component Type button

⚠️

Remember to save changes to the tool by clicking Save tool changes at the bottom of the window.