File

projects/components/widgets/page/default/src/page.directive.doc.ts

Description

The wmPage directive defines the Page component.

Index

Methods
Inputs

Methods

onAttach
onAttach($event: any, widget: any)

Callback function which will be triggered when a cached page instance is attached to dom.

Parameters :
Name Type Optional Description
$event any No

DOM event on which call back is triggered

widget any No

Instance of the page

Returns : void
onDestroy
onDestroy($event: any, widget: any)

Callback function which will be triggered when a page instance is destroyed.

Parameters :
Name Type Optional Description
$event any No

DOM event on which call back is triggered

widget any No

Instance of the page

Returns : void
onDetach
onDetach($event: any, widget: any)

Callback function which will be triggered when a reusable page instance is detached from dom.

Parameters :
Name Type Optional Description
$event any No

DOM event on which call back is triggered

widget any No

Instance of the page

Returns : void
onOrientationchange
onOrientationchange($event: MediaQueryListEvent)

Callback function which will be triggered when screen orientation is changed.

Parameters :
Name Type Optional Description
$event MediaQueryListEvent No

DOM event on which call back is triggered

Returns : void
onResize
onResize($event: Event, widget: any, data: object)

Callback function which will be triggered when window is resized.

Parameters :
Name Type Optional Description
$event Event No

DOM event on which call back is triggered

widget any No

Instance of the page

data object No

this is an object which contains screen width and screen height

Returns : void

Inputs

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.

results matching ""

    No results matching ""