PanelStack Events
Use
-
onDrop
Assignment of the action to be executed when the user moves an entry or multiple entries in the PanelStack by means of drag & drop.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
DATA
STRING
Textual representation of data transported to the DropTarget. Along with mimeType, this property forms a link to resources.
DATA is the value of the DragSourceInfo.data property of the UI element dropped on the PanelStack.
MIME_TYPE
STRING
Type of resource.
OFFSET
I
Position where the data is dropped:
-
-1 means über the entry
-
+1 means below the entry
PANEL_ID
STRING
Unique ID of the Panel in PanelStack.
TAGS
STRING
This property corresponds to flavors in the programming environment. The flavor describes the type of drag and drop description. In a drag and drop operation, you can only drop an object onto another if both have at least one common description.
-
-
onSelect
Action executed when the user selects a Panel in the PanelStack.
If you do not set an action handler for this event, the content of all Panel s is sent to the browser, and each change of the selection is handled by the client. This means that the user can change the selection easier and quicker, but that that browser has to process more data.
On the other hand, if you want to use the onSelect event, a roundtrip is always triggered when the user selects a new Panel. In this case the content of the current Panel is sent to the browser. This means the user may have to wait until the clicked Panel is displayed. But the advantage is that less data is sent to the browser. In addition, with this event you can implement complex load-on-demand scenarios to improve performance, for example, by instantiating views or loading data that is actually needed.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
OLD_PANEL
STRING
Newly selected Panel
PANEL
STRING
previously selected Panel
-
onToggle
Action executed when the user expands or collapses a PanelStack.
Parameter Name
Type
Description
ID
STRING
CONTEXT_ELEMENT
IF_WD_CONTEXT_ELEMENT
EXPANDED
WDY_BOOLEAN
Event parameter for the new status. The PanelStack is expanded for the value true.