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

ResultTemplate

configuration

A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.

Default: null

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