ViewAdapter 

An adapter component providing the current page controller’s state to the page view component through its properties.

Kind: global class


new ViewAdapter(props) 

Initializes the adapter component.

Param Type Description
props Object Component properties, containing the actual page view and the initial page state to pass to the view.

viewAdapter.state : Object.<string, \*> 

The current page state as provided by the controller.

Kind: instance property of ViewAdapter


viewAdapter._view : function 

The actual page view to render.

Kind: instance property of ViewAdapter


viewAdapter._getContextValue : function 

The memoized context value.

Kind: instance property of ViewAdapter


viewAdapter.contextSelectors : Array.<function()> 

The array of selectors for context values.

Kind: instance property of ViewAdapter


viewAdapter.createContext : function 

The function for creating context.

Kind: instance property of ViewAdapter


viewAdapter.render() 

Kind: instance method of ViewAdapter