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

Items.icon

configuration

Defines the name for an existing icon in a Kendo UI theme.

See web font icons help article for more details on Kendo UI icons.

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.

items.icon

String|Object
<div id="drawer">
    <div>Content area content.</div>
</div>
<script>
    $("#drawer").kendoDrawer({
        mode: "push",
        items: [
            { text: "Dashboard", icon: "home" },
            { text: "Files", icon: "folder" },
            { text: "Preferences", icon: "gear" }
        ]
    });
</script>

The name of the SVG icon.

<div id="drawer">
    <div>Content area content.</div>
</div>
<script>
    $("#drawer").kendoDrawer({
        mode: "push",
        items: [
            { text: "Dashboard", icon: { name: "home" } },
            { text: "Files", icon: { name: "folder" } },
            { text: "Preferences", icon: { name: "gear" } }
        ]
    });
</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="drawer">
    <div>Content area content.</div>
</div>
<script>
    $("#drawer").kendoDrawer({
        mode: "push",
        items: [
            { text: "Dashboard", icon: { name: "home", variant: "outline" } },
            { text: "Files", icon: { name: "folder", variant: "outline" } },
            { text: "Preferences", icon: { name: "gear", variant: "outline" } }
        ]
    });
</script>