(One intermediate revision by the same user not shown)
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=TouchToggleComponent.png
|Image=TouchToggleComponent.png
|Name=Touch Toggle
|Name=Touch Toggle
}}
}}
The '''TouchToggle''' component acts as a button that works as a check box, and the different Toggle on and off action can be mapped to certain Touch events.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|State|Bool|
|State|Bool| The checkbox state of this touch toggle.
|EventType|TouchEventType|
|EventType|TouchEventType| the type of touch event to listen for different event states from.
|ToggleEvent|EventState|
|ToggleEvent|EventState| The event state needed when touching to Toggle the <code>State</code> value.
|OnEvent|EventState|
|OnEvent|EventState|The event state needed when touching to switch to true the <code>State</code> value.
|OffEvent|EventState|
|OffEvent|EventState|The event state needed when touching to switch to false the <code>State</code> value.
The TouchToggle component acts as a button that works as a check box, and the different Toggle on and off action can be mapped to certain Touch events.