itemClick

Fires when user clicks on item from the Kendo UI Drawer.

Example

<div id="drawer">
        <div>Content area content.</div>
    </div>
    <script>
        $(document).ready(function() {
            var drawerInstance = $("#drawer").kendoDrawer({
                mode: "push",
                template: `<ul><li data-role='drawer-item'><span class='k-icon k-i-star-outline'></span><span class='item-text'>item 1</span></li><li data-role='drawer-separator'></li><li data-role='drawer-item'><span class='k-icon k-i-twitter'></span><span class='item-text'>item 2</span></li></ul>`,
                position: 'left',
                itemClick: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
                    console.log("Clicked on the" + e.item.find(".item-text").text());
                }

            }).data("kendoDrawer");
        });
    </script>
In this article