Back

View source code

<div id="example">
    <button data-bind="events:{ click: listener, dblclick: listener, mouseover: listener, mouseout: listener }">Button</button>
</div>

View model source code

var viewModel = kendo.observable({
    listener: function(e) {
        kendoConsole.log("Event: " + e.type);
    }
});

kendo.bind($("#example"), viewModel);