A toolbar widget.

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

The dxToolbar widget displays a set of widgets usually used to manage screen content.

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

  • jQuery
    Use the dxToolbar jQuery plug-in.

    <div id="toolbar"></div>
    var toolbarItems = [
            location: 'before',
            widget: 'button',
            options: {
                type: 'back',
                text: 'Back',
                onClick: buttonClickHandler
            location: 'after', widget: 'dropDownMenu', options: {
                items: ["Add", "Change", "Remove"],
                onItemClick: menuItemClickHandler
        { location: 'center', text: 'Products' }
        dataSource: toolbarItems
  • Knockout
    Add a div element and apply the dxToolbar binding to this element.

    <div data-bind="dxToolbar: {
        dataSource: toolbarItems
  • Angular
    Add a div element and apply the dx-toolbar directive to this element.

    <div dx-toolbar="{
        dataSource: toolbarItems

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

Since the dxToolbar widget is used to display multiple items, it supports common Collection Container widget functionality. You can find detailed information on the principles of working with the widget in the dxToolbar section of the Collection Container Widgets article.

Show Example:


An object defining configuration options for the dxToolbar 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 toolbar 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