Developing an HTML5 Control

General

  • HTML5 controls can be displayed only on (Undefined variable: docInfo_EN.FreieVariable_1)s.

    If a visualization with an HTML5 control should run on a (Undefined variable: docInfo_EN.FreieVariable_2) for example, then a warning is issued. The HTML5 controls are not displayed there.

  • Using an HTML5 control requires that the overlay functionality is enabled.

    Therefore, in the Visualization Manager, select the Support client animations and overlay of native elements option. Otherwise an error is issued.

For more information, see: Visualization Manager

Basic procedure

You can link an HTML5 control in the (Undefined variable: docInfo_EN.FreieVariable_5) development environment.

Preparation

  1. Create a JavaScript wrapper file ElementWrapper.js for the control.

  2. Specify any files which are required to run the element, such as style files (CSS), JavaScript files (JS), or image files (SVG).

  3. Create an element image ElementImage.svg which is displayed in the toolbox.

Integration into the programming system

  1. In (Undefined variable: docInfo_EN.FreieVariable_4), create an XML file (.html5control.xml) with general information.

  2. Create the mapping of the properties of the HTML5 control to the (Undefined variable: docInfo_EN.FreieVariable_4) visualization element properties.

  3. Localize the interface texts.

  4. Install the element.

  5. Sign the element.

Displaying information

In the visualization elements repository, you can get information about the elements installed in the project. You can query the status of signing and uninstall an element if in doubt.

Using an element without a valid signature

If an HTML5 control without a signature, with an invalid certificate, or with an invalid timestamp is part of your visualization, then a warning is displayed in the message view when the application code is generated.

In the message view, the _visu_icon_three_dots.png button is displayed after this warning. When you click the button, an input prompt is displayed. There you can set the element, which was warned about, to "accepted" in the project. Then this element will no longer be checked and you will not get any more warnings about it.