approvalTemplateFunction(default: null)

A function used to render the entire approval section when state is "awaitingApproval". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in approve and reject buttons are not rendered.

Example - use a custom approval template

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "send_email",
    state: "awaitingApproval",
    expandable: true,
    expanded: true,
    approvalTemplate: function() {
        return "<div>Confirm sending the email?</div>";
    }
});
</script>
In this article
approvalTemplate
Not finding the help you need?
Contact Support