Getting Started

jqxToolBar is a jQuery widget which represents a toolbar where different tools (including widgets) can be automatically added. By default, jqxToolBar supports the widgets jqxButton, jqxToggleButton, jqxDropDownList, jqxComboBox and jqxInput but custom tools can also be added.
Every UI widget from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.

The first step is to create html page and add links to the javascript files and css dependencies to your project. The jqxToolBar widget requires the following files:

The next step is to create a DIV element within the body of the html document.

The last step is to initialize the widget by adding the following script to the html document:

To call a function(method), you need to pass the method name and parameters(if any) in the jqxToolBar’s constructor.
    $("#jqxToolBar").jqxToolBar("destroyTool", 0);
To get the result of a function(method) call, you need to pass the method name in the jqxToolBar’s constructor and parameters(if any).
    var tools = $("#jqxToolBar").jqxToolBar("getTools");
To set a property(option), you need to pass the property name and value(s) in the jqxToolBar's constructor.
    $("#jqxToolBar").jqxToolBar({ disabled: true });
To get a property(option), you need to pass the property name to the jqxToolBar's constructor.
    var height = $("#jqxToolBar").jqxToolBar("height");
To bind to an event of a UI widget, you can use basic jQuery syntax. The example code below demonstrates how to bind to the "open" event of jqxToolBar.
    // bind to open event.
    $("#jqxToolBar").on("open", function (event) {
        alert("Pop-up menu opened.");

Basic Sample

The result of the above code is: