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

The icon name of the command item.

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    views: [{
        type: "commands",
        promptCommands: [
            { id: "summarize", text: "Summarize", icon: "list-unordered" },
            { id: "translate", text: "Translate", icon: "globe" }
        ]
    }]
});
</script>

The name of the SVG icon.

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    views: [{
        type: "commands",
        promptCommands: [
            { id: "summarize", text: "Summarize", icon: { name: "list-unordered" } },
            { id: "translate", text: "Translate", icon: { name: "globe" } }
        ]
    }]
});
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    views: [{
        type: "commands",
        promptCommands: [
            { id: "summarize", text: "Summarize", icon: { name: "list-unordered", variant: "outline" } },
            { id: "translate", text: "Translate", icon: { name: "globe", variant: "outline" } }
        ]
    }]
});
</script>