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

Ai.commands.icon

configuration

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.

ai.commands.icon

String|Object
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        commands: [{
            icon: "spell-checker",
            text: "Proofread"
        }]
    }
});
</script>

The name of the SVG icon.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        commands: [{
            icon: {
                name: "spell-checker"
            },
            text: "Proofread"
        }]
    }
});
</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: {
        commands: [{
            icon: {
                name: "spell-checker",
                variant: "outline"
            },
            text: "Proofread"
        }]
    }
});
</script>