items.click Function

Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.

Example

<div id="toolbar"></div>

<script>
    $("#toolbar").kendoToolBar({
        items: [
        {
            type: "button",
            text: "foo",
            click: function(e) {
                console.log(e.target.text() + " is clicked");
            }
        }
        ]
    });
</script>
In this article
Not finding the help you need? Improve this article