Home Manual Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Context is passed to all components.

public
JSON Pointer defines a string format for identifying a specific value within a JSON document.
public

Transform tracks changes to state structure, is used for mounting transforms.

Function Summary

Static Public Function Summary
public

box(val: *): *

public

assert context type

public

choke(delta: Number): function(path: String, f: Function)

creates a choke that throttle fuction calls

public

combiner(scopeMap: Map<string, ScopeFactory'>, input: Stream): Scope

combiner scope factory represents map of (sub)scopes.

public

component(decoration: ...HOC): HOC

apply multiple decorators on component

public

controller(controller: Map<string, any>): HOC

controller decorator.

public

curry(f: *, arity: *): *

public

cycle(viewF: BoundViewFactory, scopeF: BoundScopeFactory): Stream

pipes a to b and b to a -> cycle a and b

public

dispatch change sets

public

dom(container: DOMElement, rawComponent: Component): BoundViewFactory

This function is used to create the render part of your app.

public

fragment(opts: Object, input: Scope): Scope

fragment scope factory represents value of fragment identifier.

public

get(state: *, pointer: *, notFound: *): *

public

handler(context: *, pairs: *): *

public

log(targets: *): HOC

log component lifecycle

public

mapAttributes(node: *, f: *, deep: boolean): *

public

memoize(shouldUpdate: function(nextModel: Model, prevModel: Model): boolean): HOC

memoize component

public

mount(targets: Map<string, string>): HOC

transform ctx of component

public

name(name: string): HOC

add name to component - for debug messages

public

normalize(comp: *): *

public

specDecorator(options: *): *

public

styler(): HOC

add css styles as Object

public

unbox(state: *): *

public

value(init: Object, input: stream): Scope

value scope factory Scope will update and emit value on every patch action.

Variable Summary

Static Public Variable Summary
public

check(T: Type, x: Any): Boolean: *

'booleanized' check function from tcomb

public

is: *

public

Typedef Summary

Static Public Typedef Summary
public

bound scope factory

public

bound view factory

public

HOC: function(component: Component): Component

Higher Order Component

public

Map holds transform informations.

public

json patch type.

public

Scope: function(patchAction: PatchSet)

scope

  • stream representation of json data that (may) change ´* - flyd stream
public

scope factory

  • creates scope, who listen on input
  • curried: opts -> input -> scope
public

An array of Strings TokenList holds JSONPath tokens.

public

View: *

view

  • view stream representation
  • views listen on contexts and render them in some way (e.g.
public

view factory

  • creates view, who listen on scops
  • curried: opts -> input -> view
public

jsx compatible element function.

External Summary

Static Public External Summary
public

tcomb type