The WebWidget UI element is used to embed a piece of custom HTML or JavaScript code into a Web Dynpro view where it can be used as a root element.
Describes the HTML content, which is embedded in the WebWidget UI element. This content is always rendered when the client side is completely rendered, or when only the WebWidget control is rendered in a delta request.
The JavaScript handler is executed after the WebWidget control is rendered which is possible either in an initial request, or in a delta request. In this part you can access the Web Widget parameters, and you can trigger roundtrips. Public References are:
The Javascript handler, which is executed, after the WebWidget control is destroyed.This happens when
The style attribute of the root container of widget. Example:For the HTML coding
... style='background-color: red'...you have to specify 'background-color: red' in the style property.
A Web Widget parameter can be used in the scriptOnLoadattribute.
Overview
Name |
Interface |
Type |
Initial Value |
Bindable |
fireExitEvent |
IWDViewElement |
boolean |
false |
not bindable |
name |
IWDWebWidgetParameter |
String |
empty |
not bindable |
readOnly |
IWDWebWidgetParameter |
boolean |
false |
bindable |
value |
IWDWebWidgetParameter |
String |
empty |
bindable |
Name | Interface | Type | Initial Value | Bindable |
---|---|---|---|---|
contextMenuBehaviour |
IWDContextMenuProvider |
WDContextMenuBehaviour |
inherit |
not bindable |
contextMenuId |
IWDContextMenuProvider |
String |
empty |
not bindable |
enabled |
IWDUIElement |
boolean |
true |
bindable |
html |
IWDWebWidget |
String |
empty |
bindable |
scriptOnLoad |
IWDWebWidget |
String |
empty |
bindable |
scriptOnUnload |
IWDWebWidget |
String |
empty |
bindable |
style |
IWDWebWidget |
String |
empty |
bindable |
tooltip |
IWDUIElement |
String |
empty |
bindable |
visible |
IWDUIElement |
WDVisibility |
visible |
bindable |
More information: Common UI Element Properties