Class: PageRendererFactory
@ima/react-page-renderer.PageRendererFactory
Factory for page render.
Constructors
constructor
• new PageRendererFactory(componentUtils
)
Initializes the factory used by the page renderer.
Parameters
Name | Type | Description |
---|---|---|
componentUtils | ComponentUtils | The registry of component utilities. |
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:15
Properties
_componentUtils
• Private
_componentUtils: ComponentUtils
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:8
Methods
_isFunctionalComponent
▸ Private
_isFunctionalComponent(component
): boolean
Parameters
Name | Type |
---|---|
component | unknown |
Returns
boolean
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:91
getDocumentView
▸ getDocumentView(documentView
): ComponentType
Returns the class constructor of the specified document view component. Document view may be specified as a namespace path or as a class constructor.
Parameters
Name | Type | Description |
---|---|---|
documentView | ComponentType | The namespace path pointing to the document view component, or the constructor of the document view component. |
Returns
ComponentType
The constructor of the document view component.
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:40
getManagedRootView
▸ getManagedRootView(managedRootView
): ComponentType
Returns the class constructor of the specified managed root view component. Managed root view may be specified as a namespace path or as a class constructor.
Parameters
Name | Type | Description |
---|---|---|
managedRootView | ComponentType | The namespace path pointing to the managed root view component, or the constructor of the React component. |
Returns
ComponentType
The constructor of the managed root view component.
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:71
getUtils
▸ getUtils(): Utils
Return object of services which are defined for alias $Utils.
Returns
Defined in
packages/react-page-renderer/src/renderer/PageRendererFactory.ts:25