Accordion Events
Use
-
onDrop
Assignment of the action to be executed when the user moves one or more AccordionItem s in the Accordion by means of Drag and Drop. This event is triggered when something is dropped on to the Accordion or its (multiple) AccordionItem s.
The event parameters data, mimeType and tags are the corrresponding properties of DragSourceInfo, which is aggregated to the dropped UI element.
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 Accordion.
ITEM
STRING
ID of the AccordionItem or MultipleAccordionItem on which something was dropped.
ITEM_PATH
STRING
If it is a MultipleAccordionItem, this parameter contains the path of the context element that correpsonds to the instance of the MultipleAccordionItem, on which something was dropped.
MIME_TYPE
STRING
Type of resource.
Note that this property is not currently used; it is intended for future developments.
OFFSET
I
Position where the data is dropped:
-
-1 means above the entry
-
+1 means below the entry
-
0 means directly on the entry.
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 an AccordionItem.
If you do not set an action handler for this event, the content of all AccordionItem 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 AccordionItem. In this case the content of the current AccordionItem is sent to the browser. This means the user may have to wait until the clicked AccordionItem 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
NEW_ITEM
STRING
Newly selected AccordionItem
OLD_ITEM
STRING
previously selected AccordionItem