Action manager. Exports APIs to create/move/rename/remove actions or async actions.
Methods
(static) add(feature, name, args)
Add an action
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The action name. |
args |
object | Other arguments. |
(static) addAsync(feature, name, args)
Add an async action
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The action name. |
args |
object | Other arguments. |
(static) move(source, target)
Move/rename an action
Parameters:
Name | Type | Description |
---|---|---|
source |
ElementArg | Which async action to move. |
target |
ElementArg | The target place of the async action. |
(static) moveAsync(source, target)
Move/rename an async action
Parameters:
Name | Type | Description |
---|---|---|
source |
ElementArg | Which async action to move. |
target |
ElementArg | The target place of the async action. |
(static) remove(feature, name)
Remove an action
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The action name. |
(static) removeAsync(feature, name)
Remove an async action
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The action name. |