MenuContainer Events
MenuContainer widget has the following events associated with it:
onClick Event
An event callback is invoked by the platform when the user performs a click action on the MenuContainer.
Syntax
Parameters
-
menuContainer [widgetref]- Mandatory
Optional. Reference to the menuContainer widget that raised the event.
-
selectedMenuIndex [Number]- Mandatory
Optional. Specifies the index of the selected menu.
-
selectedMenuItem [Number]- Mandatory
Optional. Specifies the item of the selected menu.
Read/Write
Yes - (Read and Write)
Example
Accessible from IDE
Yes
Platform Availability
Available on Desktop Web platform only
onRightClick Event
An event callback is invoked by the platform when the user performs a right-click action on the MenuContainer.
Syntax
Parameters
-
menuContainer [widgetref]- Mandatory
Optional. Reference to the menuContainer widget that raised the event.
-
selectedMenuIndex [Number]- Mandatory
Optional. Specifies the index of the selected menu.
-
selectedMenuItem [Number]- Mandatory
Optional. Specifies the item of the selected menu.
Read/Write
Yes - (Read and Write)
Example
Accessible from IDE
Yes
Platform Availability
Available on Desktop Web platform only