DesignTimeArea Events
Use
Events in View Designer
-
onDrop
Action executed when the user moves a UI element onto the DesignTimeArea using drag and drop.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
DATA
STRING
MIME_TYPE
STRING
POSITION
WDUI_DROP_POSITION
TAGS
STRING
INDEX
I
Defines the drop position of the element within the container (of the toolbar).
Smallest value: 0.
OFFSET
I
Defines the position of the UI element (of a toolbar button), that is, whether the element is dropped before or after an existing element.
Possible values:
-
-1: Element is inserted before the existing UI element
-
1: Element is inserted after the existing UI element
Examples:
If index=3 and offset=-1, the dragged element is inserted before the third element (toolbar button).
If index=7 and offset=1, the dragged element is inserted after the seventh element (toolbar button).
-
-
onSelect
Action executed when the user selects a DesignTimeElement in the DesignTimeArea.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT