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
You can link an HTML5 control in the (Undefined variable: docInfo_EN.FreieVariable_5) development environment.
Preparation
-
Create a JavaScript wrapper file
ElementWrapper.jsfor the control. -
Specify any files which are required to run the element, such as style files (CSS), JavaScript files (JS), or image files (SVG).
-
Create an element image
ElementImage.svgwhich is displayed in the toolbox.
Integration into the programming system
-
In (Undefined variable: docInfo_EN.FreieVariable_4), create an XML file (
.html5control.xml) with general information. -
Create the mapping of the properties of the HTML5 control to the (Undefined variable: docInfo_EN.FreieVariable_4) visualization element properties.
-
Localize the interface texts.
-
Install the element.
-
Sign the element.
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.
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
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.
