This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Configuration of tooltips for displaying Form-UIs

Configuration of tooltips for displaying Form-UIs

The configuration of the nodes is to be extended in such a way that a Form-UI is displayed as a tooltip in a manner suitable for the node. In the Form-UIs, parameter values of the project component can be changed.

The diagram editor must be enhanced with this functionality:

  1. In the tag <diagramEditor> insert the attribute xmlns:formui="http://www.mind8.com/Diagram/Formui".

The configuration of the node for Floor is expanded as follows:

  1. Below the tag <figurePolygon>, insert the following lines.
<configuration>
	<editRequestHandler xsi:type="formui:formui-handler" />
	<editRequestHandlerInfo xsi:type="formui:formui-handler-info" refId="GSD" showMenu="true" />
</configuration>

Expanding the configuration of the node Room:

  1. Below the tag <figurePolygon>, insert the following lines.
<configuration>
	<editRequestHandler xsi:type="formui:formui-handler" />
	<editRequestHandlerInfo xsi:type="formui:formui-handler-info" refId="RD" />
</configuration>

The configuration of the node Component is expanded by these lines:

  1. Below the tag <figureImage>, insert the following lines.
<configuration>
	<editRequestHandler xsi:type="formui:formui-handler" />
	<editRequestHandlerInfo xsi:type="formui:formui-handler-info" refId="Data" resizable="true" movable="true" showMenu="true" />
</configuration>
  1. Save the diagram configuration ([Ctrl] + [S]).