promptSuggestionItemTemplate String|Function

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Example

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    promptSuggestions: [
        "Act as [actor] and write [format] about [subject] in [100 words]",
        "Suggest post about [subject] that will be used in [social media].",
    ],
    // add k-prompt-suggestion class to reuse the built-in click functionality
    promptSuggestionItemTemplate: function({ suggestion }) {
        return `<div class="k-prompt-suggestion my-custom-suggestion-item">
            <span class="my-custom-suggestion-item-text">${suggestion}</span>
        </div>`;
    }
});
</script>
In this article