CommandGroup
Extends:
Groups commands.
Constructor Summary
Public Constructor | ||
public |
constructor(name: string) Constructor. |
Member Summary
Public Members | ||
public |
The name of the group. |
Private Members | ||
private |
commands: StringMap<CommandObject> The commands that are a part of the group. |
|
private |
middleware: middlewareLayer[] The middleware applied to the group. |
Method Summary
Public Methods | ||
public |
add(command: CommandObject): CommandGroup Adds a command to the group. |
|
public |
applyMiddleware(layers: ...middlewareLayer): CommandGroup Adds the given middleware to the current group middleware layers. |
Public Constructors
Public Members
Private Members
Public Methods
public add(command: CommandObject): CommandGroup source
Adds a command to the group.
Params:
Name | Type | Attribute | Description |
command | CommandObject | The command. |
public applyMiddleware(layers: ...middlewareLayer): CommandGroup source
Adds the given middleware to the current group middleware layers.
Params:
Name | Type | Attribute | Description |
layers | ...middlewareLayer | The layers to apply. |
Emit:
CommandGroup#middlewareUpdate |