The <dropdownMenu> tag creates a dropdown menu with menu elements with any nesting level.

The following attributes are applicable:

AttributeTypeMandatoryDescription
classStringNSpecify the CSS class name defined in the CSS field.
sizeStringY

Specify the dropdown menu size by choosing from predefined options:

  • low (224px)
  • large (464px).
eventsStringY

Specify actions to perform after one of the predefined patterns is selected:

  • click
  • context
  • mouseOver
isShowBooleanNEnable the menu display. The default value is 'false'.
doCloseFunctionNDefine an additional action when the menu closes.
modelStringYSpecify a reference to the dynamic variable storing menu items and actions.
dropdownMenu
<dropdownMenu model="data.menu"></dropdownMenu>
dropdown_widget model example
; (() => {
    data.menu = {
        "menu": {
    "size": "low",
    "event_to_display": [
        "click"
    ],
    "sections": [
        {
            "order": "1",
            "elements": [
                {
                    "title": "Text",
                    "order": "1",
                    "event_to_display": ["click"],
                    "events": {
                        "click": "runScript()"
                    },
                    "child_elements": [
                        {
                            "title": "Text22",
                            "event_to_display": ["click"],
                            "events": {
                                "click": "runScript()"
                            },
                            "child_elements": [
                            {
                            "title": "Text2",
                            "event_to_display": ["click"],
                            "events": {
                                "click": "runScript()"
                            },
                            "child_elements": []
                        }
                            ]
                        }
                    ]
                },
                {
                    "title": "Title",
                    "order": "2",
                    "event_to_display": ["click"],
                    "events": {
                        "click": "runScript()"
                    },
                    "child_elements": [
                        {
                            "title": "Text2",
                            "event_to_display": ["click"],
                            "events": {
                                "click": "runScript()"
                            },
                            "child_elements": []
                        }
                    ]
                }
            ]
        },
        {
            "order": "2",
            "elements": [
                {
                    "title": "Text",
                    "order": "1",
                    "event_to_display": ["click"],
                    "events": {
                        "click": "runScript()"
                    },
                    "child_elements": []
                }
            ]
        }
    ]
}
    }
})();


  • No labels