Start of Content Area

Background documentation Accordion  Locate the document in its SAP Library structure

 

Runtime Class   CL_WD_ACCORDION

 

Properties in the View Designer

Name    Type     Initial Value Bindable

ID   STRING      (automatic)  No

allowDeselect    WDY_BOOLEAN     false     Yes

contextMenuBehaviour   WDUI_CONTEXT_MENU_BEHAVIOUR   inherit   No

contextMenuId   WDY_MD_UI_ELEMENT_REFERENCE        No

enabled WDY_BOOLEAN     true Yes

selectedItem      STRING            Yes

tooltip   Übersetzbarer Text         Yes

visible   WDUI_VISIBILITY    visible   Yes

 

Aggregations in the View Designer

Name    Cardinality   Type

DRAG_SOURCE_INFO  0..1 DragSourceInfo

DROP_TARGET_INFO   0..1 DropTargetInfo

ITEMS  0..n AccordionItem

 

Events in the View Designer

Name

onDrop

onSelect

 

Other properties that can be inherited are defined in the associated higher-level classes. The associated UI elements are:

UIElement

ContextMenuProvider

ViewElement

Dynamic Programming

For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. Bear in mind the different spellings.

Dynamic Programming of Properties

View Designer Name      Runtime Name   Type

allowDeselect    ALLOW_DESELECT      WDY_BOOLEAN

contextMenuBehaviour   CONTEXT_MENU_BEHAVIOUR  WDUI_CONTEXT_MENU_BEHAVIOUR

 contextMenuBehaviour: inherit    CL_WD_ACCORDION=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT

 contextMenuBehaviour: provide  CL_WD_ACCORDION=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE

 contextMenuBehaviour: suppress     CL_WD_ACCORDION=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS

contextMenuId   CONTEXT_MENU_ID      WDY_MD_UI_ELEMENT_REFERENCE

enabled ENABLED   WDY_BOOLEAN

selectedItem      SELECTED_ITEM    STRING

tooltip   TOOLTIP     WDY_MD_TRANSLATABLE_TEXT

visible   VISIBLE      WDUI_VISIBILITY

visible: none      CL_WD_ACCORDION=>E_VISIBLE-NONE

visible: visible     CL_WD_ACCORDION=>E_VISIBLE-VISIBLE

 

Dynamic Programming of Events

View Designer Name      Runtime Name

onDrop  ON_DROP

onSelect     ON_SELECT

 

Dynamic Programming of Aggregations

View Designer Name      Runtime Name   Cardinality

DRAG_SOURCE_INFO  DRAG_SOURCE_INFO  0..1

DROP_TARGET_INFO   DROP_TARGET_INFO   0..1

ITEMS  ITEMS  0..n

 

Example

You can find an example of this UI element in the WDR_TEST_ACCORDION component.

 

End of Content Area