Edit this page

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy