New to Kendo UI for jQuery? Start a free 30-day trial

Action

events

Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.action String

The action that was taken. Either "approve" or "reject".

e.sender kendo.ui.ToolCall

The widget instance which fired the event.

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "send_email",
    state: "awaitingApproval",
    expandable: true,
    expanded: true,
    action: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
        console.log(e.action);
    }
});
</script>
<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "send_email",
    state: "awaitingApproval",
    expandable: true,
    expanded: true
});
var toolCall = $("#toolcall").data("kendoToolCall");
toolCall.bind("action", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.action);
});
</script>
Not finding the help you need?
Contact Support