Triggers
The trigger allows you assign an event to the widget. The events gets triggered when you do the action assigned to the trigger.
Usage:
To add triggers to your widgets, do the following:
- Click Triggers to add triggers to your widget.
- Click Event drop-down and select one of the following Events.
- Mouse events includes: Click, Double Click, Right Click, Mouse Over, Mouse Out, and Mouse Wheel.
- Load and Unload of the widget.
- Timeout - if there is a dead time for a widget to load, it is possible to trigger an event when the dead time crosses the limit set.
- Interval - This event is triggered after a certain interval from the time the widget gets loaded.
- Variable Data change - This event is triggered when the assigned variable data changes. You will be able to skip the initial data change by checking the Skip initial data event checkbox. It is possible to add a condition and make the trigger to execute only if it satisfies a condition. Check Condition, to execute a trigger based on a condition and provide the condition.
- Click Create Action and do one of the following:
- Select Navigate and choose the display to navigate. You will be able to navigate to an external link or open a file. To open the URL in a new tab, click Open in New Tab.
To open a file, the file must be copied into the
../staging/www directory
. The URL that links the file is in the following format: http://ipaddress:port/filename.extension. For instance, if the computer that is running deviceWISE is on 10.123.61.100 and listening on port 8083. Place the file in the../staging/www directory
and change the external link to http://10.123.61.100:8083/<filename> - Select Write Value to write a value to a variable.
- Select Fire Trigger to choose a Project and an associated Trigger.
- Select Fire Subtrigger to choose a Project and an associated Subtrigger.
- Select Info Bar and type in a Message that will be shown when you click on the widget.
You will be able to bind triggers or projects dynamically by using
${<project/triggername>}
- Select Open Modal, select the display to open, assign a Unique Id and enter the modal display options. You will be able to select displays from a different gallery.
- Select Close Modal, select the display to close by providing the Unique Id.
- Select Wait and enter the number in milliseconds. The widget will wait for the so many milliseconds before doing further actions.
- Select Fullscreen, to enter full screen(F11).
- Select Fullscreen Exit, to exit full screen(F11).
- Select Audio, and then select one of the following Type.
- If you select Sound, provide the Audio URL. Adjust the Volume and Playback Rate as per your need. Check Loop to repeat the Sound.
- If you select Speech, select the Voice and enter the Text it needs to read. Adjust the Rate, Pitch, and Volume as per your need.
- Select Vibrate and enter the Vibrate and Pause intervals to create a vibration pattern.
- Select Navigate and choose the display to navigate. You will be able to navigate to an external link or open a file. To open the URL in a new tab, click Open in New Tab.