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

ErrorTemplate

configuration

A function used to render the entire error section when state is "error". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in error message box is not rendered.

Default: null

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "fetch_data",
    state: "error",
    expandable: true,
    expanded: true,
    errorTemplate: function() {
        return "<div class='custom-error'>An error occurred.</div>";
    }
});
</script>
Not finding the help you need?
Contact Support