errorTemplateFunction(default: null)
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.
Example - use a custom error template
<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>