MenuButton

Introduction

The MenuButton control is a button that opens a menu upon user's click. MenuButton is a composition of the Menu control and the Button control and thus inheriting all features. When a menu item is selected by the user, MenuButton throws an event called itemSelected. The event transfers the itemId of the selected item. As an alternative, the button press event can be used which has a similar behavior.

Example

Keyboard Support

When the MenuButton control has mode enabled, it is possible to open the menu using the Enter, the Space, or the key combination Alt + Arrow down. For information on the keyboard support for the menu, see Menu.

ARIA Support

The MenuButton control implements the ARIA role button with extension haspopup. For the ARIA support of the menu refer the Menu page.

API Documentation

See API documentation