Skip to main content

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

NameTypeDescription
componentUtilsComponentUtilsThe 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

NameType
componentunknown

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

NameTypeDescription
documentViewComponentTypeThe 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

NameTypeDescription
managedRootViewComponentTypeThe 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

Utils

Defined in

packages/react-page-renderer/src/renderer/PageRendererFactory.ts:25