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

The icon of the command.

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.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        inlineAIPrompt: {
            commands: [{
                icon: "sparkline",
                text: "Enhance"
            }]
        }
    }
});
</script>

The name of the SVG icon.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        inlineAIPrompt: {
            commands: [{
                icon: {
                    name: "sparkline"
                },
                text: "Enhance"
            }]
        }
    }
});
</script>

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

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        inlineAIPrompt: {
            commands: [{
                icon: {
                    name: "sparkline",
                    variant: "outline"
                },
                text: "Enhance"
            }]
        }
    }
});
</script>