The Toggle Switch component can be used to show an on/off value. Clicking on the switch toggles between the on and off states.
The JavaScript file can be edited to create actions to use with this component.
Features
- Visual display for binary values
- Customizable on/off icons
- Ability to set a default value
Properties for Toggle Switch Component
Name | When components are placed on a page they appear highlighted blue in the scene tree and can be renamed by double clicking in this panel and typing the new name. Components can also be set to be visible/invisible on the page, using the ‘eye’ icon on this panel. |
Position and Size | Sets position and size. As long as measurements are maintained as percentages it deals automatically with dynamic layout and resizing for different devices and orientations. You can use millimeters to control aspects of size like width or height on order to create a component thats size will be maintained across devices. |
Custom Properties | The properties below allow you to set the images and default value. |
bkg_off_filename | Select an image to use to show when the toggle switch is off. |
bkg_on_filename | Select an image to use to show when the toggle switch is on. |
thumb_filename | Select an image to use as the toggle that moves between the off and on positions. |
Value | Set a value of 0 for off, or 1 for on, to display when the component first displays. |