projects/components/widgets/prefab/src/prefab.component.doc.ts
The wmPrefab component defines the prefab widget.
Methods |
Inputs |
onAttach | ||||||||||||
onAttach($event: any, widget: any)
|
||||||||||||
Callback function which will be triggered when a saved cached host page instance is attached to dom.
Parameters :
Returns :
void
|
onDestroy | ||||||||||||
onDestroy($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget is being destroyed.
Parameters :
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 :
Returns :
void
|
onLoad | ||||||||||||
onLoad($event: MouseEvent, widget: any)
|
||||||||||||
Callback function which will be triggered when the widget is loading.
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
|
class |
Type : string
|
Class of the widget. |
name |
Type : string
|
Name(Unique across the web page) of the prefab widget. |
prefabname |
Type : string
|
Name of prefab to be rendered inside the prefab widget |
show |
Type : boolean
|
Default value : true
|
This property will be used to show/hide the prefab widget on the web page. Bindable: |