Question Toggle negative trigger?

bFlamingfire

New member
Messages
5
Reactions
17
Points
3
This might be a stupid question. Where is the uncheck trigger of UIToggler defined? I cannot find anywhere in the UIToggler interface.
 
This might be a stupid question. Where is the uncheck trigger of UIToggler defined? I cannot find anywhere in the UIToggler interface.

Well there is no second "OnInactivation" trigger to specify, but it's usually opposite of what you have as "Toggle Action" (doesn't work on everything).
Think of it as UIButton with single "Button Action" but you actually trigger opposite "action/trigger" when off/unchecked.
example toggleOn with UIButton will toggle states, but on(true)/off(false) triggers won't work with UIButton.
With UIToggler for example you set "on" when checked and "off" will be when unchecked, or change values of something (first & second point value).

It's basically built in sort of "flip-flop" system.
Instead of having single input/action on UIButton press you have second one when toggled off.
You can still use 2 values on UIButton but it won't freeze/toggle in between values, that's where UIToggle comes in.
uitoggle1.jpg

uitoggle2.jpg

uitoggle3.jpg
 
Upvote 0
Back
Top Bottom