Home Reference Source Test Repository
import ActionTransform from 'action-stream/src/lib/ActionTransform.js'
public class | source

ActionTransform

Extends:

stream~Transform → ActionTransform

Call models or views according to recived actions.

Test:

Constructor Summary

Public Constructor
public

constructor(option: object)

Method Summary

Public Methods
public

bindActions(target: string, handlers: ActionBinding[])

Bind calback functions to Actions.

Public Constructors

public constructor(option: object) source

Params:

NameTypeAttributeDescription
option object
  • nullable: true

this is passed to the super class.

Public Methods

public bindActions(target: string, handlers: ActionBinding[]) source

Bind calback functions to Actions.

Params:

NameTypeAttributeDescription
target string
  • nullable: false

The target stream will recive actions.

handlers ActionBinding[]
  • nullable: false

A set of action type and action handlers.