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

Sets icon for the menu buttons. The icon should be one of the existing in the Kendo UI theme sprite.

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="toolbar"></div>

<script>
    $("#toolbar").kendoToolBar({
        items: [
        {
            type: "splitButton",
            text: "splitButton",
            menuButtons: [
                { id: "foo", text: "Foo", icon: "check" },
                { id: "bar", text: "Bar", icon: "info-circle" },
                { id: "baz", text: "Baz", icon: "clock" }
            ]
        }
        ]
    });
</script>

The name of the SVG icon.

<div id="toolbar"></div>

<script>
    $("#toolbar").kendoToolBar({
        items: [
        {
            type: "splitButton",
            text: "splitButton",
            menuButtons: [
                { id: "foo", text: "Foo", icon: { name: "check" } },
                { id: "bar", text: "Bar", icon: { name: "info-circle" } },
                { id: "baz", text: "Baz", icon: { name: "clock" } }
            ]
        }
        ]
    });
</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="toolbar"></div>

<script>
    $("#toolbar").kendoToolBar({
        items: [
        {
            type: "splitButton",
            text: "splitButton",
            menuButtons: [
                { id: "foo", text: "Foo", icon: { name: "check", variant: "outline" } },
                { id: "bar", text: "Bar", icon: { name: "info-circle", variant: "outline" } },
                { id: "baz", text: "Baz", icon: { name: "clock", variant: "outline" } }
            ]
        }
        ]
    });
</script>