projects/components/widgets/page/default/src/page.directive.doc.ts
The wmPage
directive defines the Page component.
Methods |
Inputs |
onAttach | ||||||||||||
onAttach($event: any, widget: any)
|
||||||||||||
Callback function which will be triggered when a cached page instance is attached to dom.
Parameters :
Returns :
void
|
onDestroy | ||||||||||||
onDestroy($event: any, widget: any)
|
||||||||||||
Callback function which will be triggered when a page instance is destroyed.
Parameters :
Returns :
void
|
onDetach | ||||||||||||
onDetach($event: any, widget: any)
|
||||||||||||
Callback function which will be triggered when a reusable page instance is detached from dom.
Parameters :
Returns :
void
|
onOrientationchange | ||||||||
onOrientationchange($event: MediaQueryListEvent)
|
||||||||
Callback function which will be triggered when screen orientation is changed.
Parameters :
Returns :
void
|
onResize | ||||||||||||||||
onResize($event: Event, widget: any, data: object)
|
||||||||||||||||
Callback function which will be triggered when window is resized.
Parameters :
Returns :
void
|
cache |
Type : string
|
When a user navigates from a page, the page instance is destroyed. If this property is set to true, then the page instance is saved in a cache. If user re-visits the same path, then the saved instance is shown to the user. |
pagetitle |
Type : string
|
This property will be set as the page title in run mode. |
refreshdataonattach |
Type : string
|
If this property is set to true, then variables that have 'load on page startup' as true, are refreshed when a cached page is attached back. |