Home Reference Source
import ActionControllerDelegate from '~/delegate/ActionControllerDelegate.js'
public interface | source

ActionControllerDelegate

Direct Subclass:

SortControllerDelegate

Direct Implemented:

Action controller delegate. Controlls action

Static Method Summary

Static Public Methods
public static

bindValue(elem: string | HTMLElement): Function

Binds an elements value to a state's user-friendly value. Uses State#toString

public static

Pipes a state to a function.

Method Summary

Public Methods
public

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:

NameTypeAttributeDescription
elem string | HTMLElement

id or HTMLElement to bind value.

Return:

Function

Set to the state handler.

public static pipeValueTo(func: Function): Function source

Pipes a state to a function.

Params:

NameTypeAttributeDescription
func Function

Function to run with state

Return:

Function

Returned function for delegate.

Public Methods

public didChangeProgressState(controller: ViewController, state: boolean) source

Specifies the action controller entered a processing or loading state.

Params:

NameTypeAttributeDescription
controller ViewController
state boolean

If in progress

public didSetStateTo(controller: ViewController, state: Object) source

Params:

NameTypeAttributeDescription
controller ViewController

Controller emitting state. Might actually be a template in some cases.

state Object

Action-specific state object