views.footerTemplate String|Function

The template of the view footer. It can be a string, a function or a Kendo Template.

Example

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    views: [
        {
            type: 'prompt',
            promptSuggestions: [
                "Act as [actor] and write [format] about [subject] in [100 words]",
                "Suggest post about [subject] that will be used in [social media].",
            ],
        },
        "output",
        {
            type: 'commands',
            promptCommands: [

                { id: "1", text: "Simplify", icon: "min-width" },
                { id: "2", text: "Extend", icon: "arrows-left-right" },
            ]
        },

        {
            name: "custom",
            type: "custom",
            buttonIcon: "pencil",
            buttonText: "Custom View from Options",
            viewTemplate: () => "<div class='custom-view'>Custom View</div>",
            footerTemplate: () => "<div class='custom-footer'>Custom Footer</div>",
            initializeComponents: function() {
                console.log("initialize components in custom view");
            }
        }]
})
</script>
In this article