import ActionControllerDelegate from '~/delegate/ActionControllerDelegate.js'ActionControllerDelegate
Direct Subclass:
Direct Implemented:
Action controller delegate. Controlls action
Static Method Summary
| Static Public Methods | ||
| public static |
Binds an elements value to a state's user-friendly value. Uses State#toString |
|
| public static |
pipeValueTo(func: Function): Function Pipes a state to a function. |
|
Method Summary
| Public Methods | ||
| public |
didChangeProgressState(controller: ViewController, state: boolean) Specifies the action controller entered a processing or loading state. |
|
| public |
didSetStateTo(controller: ViewController, state: Object) |
|
Static Public Methods
public static bindValue(elem: string | HTMLElement): Function source
Binds an elements value to a state's user-friendly value. Uses State#toString
Params:
| Name | Type | Attribute | Description |
| elem | string | HTMLElement | id or HTMLElement to bind value. |
Public Methods
public didChangeProgressState(controller: ViewController, state: boolean) source
Specifies the action controller entered a processing or loading state.
Params:
| Name | Type | Attribute | Description |
| controller | ViewController | ||
| state | boolean | If in progress |
public didSetStateTo(controller: ViewController, state: Object) source
Params:
| Name | Type | Attribute | Description |
| controller | ViewController | Controller emitting state. Might actually be a template in some cases. |
|
| state | Object | Action-specific state object |
