User Tools

Site Tools


toggle

Toggle

The Toggle element acts as a toggle button.

Graphic elements working as a toggle switch to turn on and off the visibility of an “X”
Toggle screenshot

Characteristic

Definition
Type Interactive Display Object
Category Element
Scope Local
Position *
Parents Container
Children none
Gestures Touch event
Requirements none

Attribute

Type

Description
background object reference defines the square background
backgroundColor number sets the color of the background
backgroundLineColor number sets the color of the background line
bacgroundLineStroke number sets the background line stroke
toggleColor number sets the color of the toggle
toggleGraphic object reference the “x” graphic
toggleLineStroke number sets the line stroke of the toggle

See Also: Display Attributes

<Toggle id="toggle" x="700" y="200" backgroundColor="0xFFFFFF" backgroundLineColor="0xFF0000" backgroundLineStoke="3" toggleColor="0xFF0000" toggleLineStoke="1"/>
toggle.txt · Last modified: 2015/09/18 17:50 by glass