Action.setOnToggle

Sets the function that is executed when the Action is toggled
The function has two arguments
The first argument is toggle state of this action
The second argument is this action itself
overload 1:
Action:setOnToggle(leftFunction)
Method Property Fluent Description Representation
leftFunction accepts a function
Return Value an Action
a a