Class: PageFactory
@ima/core.PageFactory
Factory for page.
Constructors
constructor
• new PageFactory(oc
)
Factory used by page management classes.
Parameters
Name | Type |
---|---|
oc | ObjectContainer |
Defined in
packages/core/src/page/PageFactory.ts:24
Properties
_oc
• _oc: ObjectContainer
The current application object container.
Defined in
packages/core/src/page/PageFactory.ts:19
Methods
createController
▸ createController(controller
, options
): Controller
<{}, {}, {}>
Create new instance of Controller.
Parameters
Name | Type |
---|---|
controller | RouteController |
options | RouteOptions |
Returns
Controller
<{}, {}, {}>
Defined in
packages/core/src/page/PageFactory.ts:31
createView
▸ createView<V
>(view
): Constructor
<keyof OCAliasMap
| Constructor
<any
>> | V
& Function
Retrieves the specified react component class.
Type parameters
Name | Type |
---|---|
V | extends keyof OCAliasMap | Constructor <any > | (...args : any []) => any |
Parameters
Name | Type | Description |
---|---|---|
view | V | The namespace referring to a react component class, or a react component class constructor. |
Returns
Constructor
<keyof OCAliasMap
| Constructor
<any
>> | V
& Function
The react component class constructor.
Defined in
packages/core/src/page/PageFactory.ts:84
decorateController
▸ decorateController(controller
): ControllerDecorator
<{}, {}, {}>
Returns decorated controller for ease setting seo params in controller.
Parameters
Name | Type |
---|---|
controller | Controller <{}, {}, {}> |
Returns
ControllerDecorator
<{}, {}, {}>
Defined in
packages/core/src/page/PageFactory.ts:105
decoratePageStateManager
▸ decoratePageStateManager(pageStateManager
, allowedStateKeys
): PageStateManagerDecorator
Returns decorated page state manager for extension.
Parameters
Name | Type |
---|---|
pageStateManager | PageStateManager <{}> |
allowedStateKeys | string [] |