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) {
/* The result can be observed in the DevTools(F12) console of the browser. */
                console.log(e.target.text() + " is clicked");
            }
        }
        ]
    });
</script>
In this article