Home Reference Source Test Repository
public class | source

Renderer

Render

Constructor Summary

Public Constructor
public

constructor(component: Function)

Constructor

Member Summary

Public Members
public
public

nodes: *

Method Summary

Public Methods
public

createTreeAndAttachDOM(item: RenderItem): {node: DOMNode, tree: Object}

Create virtual-dom tree and attach DOMNode

public

render(newItems: RenderItem[])

render

Public Constructors

public constructor(component: Function) source

Constructor

Params:

NameTypeAttributeDescription
component Function

virtual-dom Component Function

Public Members

public component: * source

public nodes: * source

Public Methods

public createTreeAndAttachDOM(item: RenderItem): {node: DOMNode, tree: Object} source

Create virtual-dom tree and attach DOMNode

Params:

NameTypeAttributeDescription
item RenderItem

item object

Return:

{node: DOMNode, tree: Object}

public render(newItems: RenderItem[]) source

render

Params:

NameTypeAttributeDescription
newItems RenderItem[]

render item list