AbstractPageRenderer

page/renderer/AbstractPageRenderer~ AbstractPageRenderer

Base class for implementations of the PageRenderer interface.

Constructor

new AbstractPageRenderer(factory, Helper, ReactDOM, settings)

Source:
Initializes the abstract page renderer.
Parameters:
Name Type Description
factory PageRendererFactory Factory for receive $Utils to view.
Helper vendor.$Helper The IMA.js helper methods.
ReactDOM vendor.ReactDOM React framework instance, will be used to render the page.
settings Object.<string, *> Application settings for the current application environment.

Members

(protected) _factory :PageRendererFactory

Source:
Factory for receive $Utils to view.
Type:
  • PageRendererFactory

(protected) _Helper :Vendor.$Helper

Source:
The IMA.js helper methods.
Type:
  • Vendor.$Helper

(protected) _ReactDOM :Vendor.ReactDOM

Source:
Rect framework instance, used to render the page.
Type:
  • Vendor.ReactDOM

(protected, nullable) _reactiveView :React.Component

Source:
Type:
  • React.Component

(protected) _settings :Object.<string, *>

Source:
Application setting for the current application environment.
Type:
  • Object.<string, *>

Methods

(protected) _generateViewProps(view, stateopt) → {Object.<string, *>}

Source:
Generate properties for view from state.
Parameters:
Name Type Attributes Default Description
view function The page view React component to wrap.
state Object.<string, *> <optional>
{}
Returns:
Type
Object.<string, *>

_getDocumentView(documentView) → {function}

Source:
Returns the class constructor of the specified document view component.
Parameters:
Name Type Description
documentView function | string The namespace path pointing to the document view component, or the constructor of the document view component.
Returns:
The constructor of the document view component.
Type
function

_getWrappedPageView(controller, view, routeOptions)

Source:
Returns wrapped page view component with managed root view and view adapter.
Parameters:
Name Type Description
controller ControllerDecorator
view function
routeOptions Object The current route options.

clearState()

Source:

(abstract) mount()

Source:

setState()

Source:

unmount()

Source:

update()

Source: