new Action()
Members
-
static eventBus
-
the action event bus, for communicating between action Components
Methods
-
static addAction(name, fn)
-
Adds a new action that can be performed
Parameters:
Name Type Description name
string The name of the action
fn
function The function to be performed
-
static clearActions()
-
Removes all registered actions. Mostly used for testing.
-
static getActionList() → {Map}
-
Returns a list of all registered actions