responseTemplateString | Function

A template function for customizing the display of output content. This function is called when an output's and final content needs to be rendered.

The function receives an object with output (the output data) and prompt (the output prompt text) properties and should return HTML string.

js
$("#inlineaiprompt").kendoInlineAIPrompt({
       responseTemplate: function(response) {
            return `
                <p>Prompt:</p>
                <br/>
                <br/>
                <p>${response.prompt}</p>
                <br/>
                <br/>
                <p><strong>Output:</strong></p>
                <br/>
                <br/>
                <p><strong>${response.output}</strong></p>
            `
       },
})
</script>
In this article
responseTemplate
Not finding the help you need?
Contact Support