new AbstractPageRenderer(factory, Helper, ReactDOM, settings)
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
-
Factory for receive $Utils to view.
Type:
-
<protected> _Helper :Vendor.$Helper
-
The IMA.js helper methods.
Type:
- Vendor.$Helper
-
<protected> _ReactDOM :Vendor.ReactDOM
-
Rect framework instance, used to render the page.
Type:
- Vendor.ReactDOM
-
<protected, nullable> _reactiveView :React.Component
-
Type:
- React.Component
-
<protected> _settings :Object.<string, *>
-
Application setting for the current application environment.
Type:
- Object.<string, *>
Methods
-
<protected> _generateViewProps(view [, state])
-
Generate properties for view from state.
Parameters:
Name Type Argument Default Description view
function The page view React component to wrap.
state
Object.<string, *> <optional>
{} Returns:
- Type
- Object.<string, *>
-
_getDocumentView(documentView)
-
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)
-
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()
-
-
<abstract> mount()
-
-
setState()
-
-
unmount()
-
-
update()
-