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

ActionReadable

Extends:

stream~Readable → ActionReadable

Convert events from views to actions.

Test:

Constructor Summary

Public Constructor
public

constructor(selector: string, option: object)

A sub class must set the name field.

Method Summary

Protected Methods
protected abstract

_bindComponent(selector: string, push: function(action: Action))

this method must be overridden by sub class.

Public Constructors

public constructor(selector: string, option: object) source

A sub class must set the name field.

Params:

NameTypeAttributeDescription
selector string
  • nullable: true

This is selector to specfy the view.

option object
  • nullable: true

This is passed to the super class.

Protected Methods

protected abstract _bindComponent(selector: string, push: function(action: Action)) source

this method must be overridden by sub class.

Params:

NameTypeAttributeDescription
selector string
  • nullable: true

This is the first parameter of the constructor.

push function(action: Action)
  • nullable: false

A callback function to push a new Action.