Class SwitchBooleanAction
Hierarchy (View Summary)
- Action
- SwitchBooleanAction
Constructors
constructor
-
new SwitchBooleanAction(
triggerOptions: any,
target: any,
propertyPath: string,
condition?: Condition,
): SwitchBooleanActionInstantiate the action
Parameters
- triggerOptions: any
defines the trigger options
- target: any
defines the object containing the boolean
- propertyPath: string
defines the path to the boolean property in the target object
Optionalcondition: Conditiondefines the trigger related conditions
Returns SwitchBooleanAction
- triggerOptions: any
Properties
on Before Execute Observable
An event triggered prior to action being executed.
property Path
propertyPath: string
The path to the boolean property in the target object
trigger
trigger: number
Trigger for the action
trigger Options
triggerOptions: any
the trigger, with or without parameters, for the action
Methods
execute
-
Execute the action toggle the boolean value.
Returns void
get Trigger Parameter
-
Gets the trigger parameter
Returns any
the trigger parameter
serialize
-
Serializes the actions and its related information.
Parameters
- parent: any
defines the object to serialize in
Returns any
the serialized object
- parent: any
set Trigger Parameter
-
Sets the trigger parameter
Parameters
- value: any
defines the new trigger parameter
Returns void
- value: any
skip To Next Active Action
-
Skips to next active action
Returns void
This defines an action responsible to toggle a boolean once triggered.
See
https://doc.babylonjs.com/features/featuresDeepDive/events/actions