resultTemplateFunction(default: null)
A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.
Example - use a custom result template
<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
label: "fetch_user",
state: "completed",
expandable: true,
expanded: true,
result: { name: "Jane Doe" },
resultTemplate: function(opts) {
return "<strong>" + kendo.htmlEncode(opts.result.name) + "</strong>";
}
});
</script>