User Tools

Site Tools


toggle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

toggle [2015/09/18 17:50] (current)
glass created
Line 1: Line 1:
 +====== Toggle ======
  
 +The Toggle element acts as a toggle button.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ Graphic elements working as a toggle switch to turn on and off the visibility of an "​X"​
 +|-
 +|{{:​oetoggle.jpg?​nolink&​100|Toggle screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Characteristic
 +!
 +Definition
 +|-
 +| Type || Interactive Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope ||Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || none
 +|-
 +| Gestures || Touch event
 +|-
 +| Requirements || none
 +|}
 +
 +{| class="​wikitable"​
 +!
 +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