File

projects/components/base/src/widgets/common/partial/partial.directive.doc.ts

Description

The wmPartial directive defines a partial.

Index

Methods

Methods

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

Callback function which will be triggered when a cached host 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 partial widget

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

Callback function which will be triggered when the widget is being destroyed.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the partial widget

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

Callback function which will be triggered when a reusable host 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 partial widget

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

results matching ""

    No results matching ""