action

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.

Example - subscribe to the "action" event during initialization

<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>

Example - subscribe to the "action" event after initialization

<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>
In this article
action
Not finding the help you need?
Contact Support