Documentation
SelectModule
Require: IP-Symcon >= 5.5
Creates a selection dialog with the caption caption.
If created in the "elements" area, the property name is set to the ID of the selected instance when accepted.
Parameters
Parameter | Description |
---|---|
caption | Visible caption |
download (optional) | (default: "") If this parameter is not an empty string and the output of the onChange script is a Data-URL, the output is downloaded as a text file with the name of the download parameter. (since IP-Symcon 7.0) |
enabled (optional) | (default: true) If true, the module selection can be used, otherwise it is displayed as deactivated |
link (optional) | (default: false) If this parameter is true, the output of the onChange script is opened as a link. If it is false, the output is displayed as a dialog in the configuration form. (since IP-Symcon 6.0) |
moduleID | The ID of the module whose instances are to be offered for selection |
name (optional) | Name of the module slection/the property to be set |
onChange (optional) | (default: "") Script which is executed when the value of the category selection is changed. If the script consists of several lines, the individual lines can also be defined as an array (arrays are supported since version 6.0). It has the same properties as onClick of the Button |
type | SelectModule |
value (optional) | (default: 0) The value of the module selection - If there is an associated property, this parameter is overwritten by the property in the elements area |
visible (optional) | (default: true) If true, the module selection is visible, otherwise it is invisible |
width (optional) | (default: 300px) Fixed width of the module selection in pixels or % as a string, e.g. "40%" or "250px" |
Example
{ "type": "SelectModule", "name": "PropertyModuleInstanceID", "caption": "VoIP Module" , "moduleID": "{A4224A63-49EA-445F-8422-22EF99D8F624}"}