add

Adds new command to the ToolBar widget. Accepts object with valid command configuration options.

Parameters

command Object

An object with valid command configuration options.

Example - add button to the ToolBar

<div id="toolbar"></div>
<script>
    $("#toolbar").kendoToolBar({
        items: [
            { type: "button", text: "MyButton" }
        ]
    });

    var toolbar = $("#toolbar").data("kendoToolBar");
    toolbar.add({
        type: "button",
        text: "Just added",
        togglable: true
    });
</script>
In this article