A menu widget.

Included in: dx.webappjs.js, dx.all.js

The dxMenu widget displays a single-level or multi-level menu that performs an action when an item is clicked.

You can create a widget using one of the following approaches.

  • jQuery
    Use the dxMenu jQuery plug-in.

    <div id="menu"></div>
    var menuItems = [
        { text: "Hide" },
        { text: "Delete" },
            text: "Clipboard",
            items: [
                { text: "Copy text" },
                { text: "Clear text" },
                { text: "Paste text" }
        items: menuItems
  • Knockout
    Add a div element and apply the dxMenu binding to this element.

    <div data-bind="dxMenu: {
        items: menuItems
  • Angular
    Add a div element and apply the dx-menu directive to this element.

    <div dx-menu="{
        items: menuItems

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

You can find detailed information on the principles of working with the widget in the dxMenu section of the Menu Widgets article.

View Demo

Watch Video

Show Example:


An object defining configuration options for the dxMenu widget.


This section describes members used to manipulate the widget.


This section describes events exposed by this widget.

Default Item Template

This section lists the data source fields that are used in a default template for menu items.

By default, a predefined item template is applied to display the items of this widget. This template is based on certain fields of the data source provided for this widget. Below is a list of these fields. If the default item template is not appropriate for your task, implement a custom item template based on these or other fields of your data source.

See Also