- Source:
Methods
-
<static> callEventClass(event)
-
Parameters:
Name Type Description eventPhSim.Events.PhSimEvent Event Object
- Source:
-
<static> off(eventStr, call)
-
Parameters:
Name Type Description eventStrString callPhSimEventCall - Source:
-
<static> on(eventStr, call [, options])
-
Used to add events to a PhSim simulation
Parameters:
Name Type Argument Default Description eventStrstring String representing the event.
callPhSimEventCall Function to run when event is executed.
optionsobject <optional>
{} Event Listener Options.
Properties
Name Type Argument Description onceboolean <optional>
If true, the function is executed only once.
slEventboolean <optional>
If true, the event will be removed when the simulation changes
- Source: