This functionality is only available for certain module packages.

You are here: Reference > GRAPH2D > Overlays

Overlays

In addition to tooltips, also overlays can be displayed for components, which are represented in a GRAPH2D diagram as graphical objects. To display an overlay, the user must perform a double click on the graphical object in the GRAPH2D diagram. The following figure shows an overlay for the damper component in the GRAPH2D diagram of the AirConditionAndVentilationPlant model.

To configure an overlay, the tag < editRequestHandler xsi:type="formui:formui-handler" /> is used to access the schema of the formui name space. To be able to use the schema of this name space, it must be introduced with the <diagramEditor> tag.

In the following example code, this is highlighted in bold:

The content of the tooltip is specified in the enclosing element <read value="Formula to text">.

The following example code generates the overlay, which is shown in the above figure.