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
componentUtilsdefaultThe registry of component utilities.

Defined in

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

Properties

_componentUtils

Private _componentUtils: default

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:89


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
documentViewComponentType<{}>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

NameTypeDescription
managedRootViewComponentType<{}>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:70


getUtils

getUtils(): UnknownParameters

Return object of services which are defined for alias $Utils.

Returns

UnknownParameters

Defined in

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