toolbarItems Array

An array of toolbar items to display in the header Toolbar. They will be rendered after the items generated from the configurations of the views.

Example

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    toolbarItems: [
        // add 'Spacer' item move the Close button to the right
        { type: "spacer" },
        // add a 'Close' round icon button
        { type: "button", icon: "x", fillMode: "flat", rounded: "full", themeColor: "primary", click: function(e) { console.log("Close button clicked", e); } }
    ]
});
</script>
In this article