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

Specifies the icon of the 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="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    contextMenu: {
        body: [{
            name: "customItem",
            text: "Custom Item",
            icon: "k-icon k-i-gear",
            command: "CustomCommand"
        }]
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>

The name of the SVG icon.

<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    contextMenu: {
        body: [{
            name: "customItem",
            text: "Custom Item",
            icon: {
                name: "k-icon k-i-gear"
            },
            command: "CustomCommand"
        }]
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</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="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
    contextMenu: {
        body: [{
            name: "customItem",
            text: "Custom Item",
            icon: {
                name: "k-icon k-i-gear",
                variant: "outline"
            },
            command: "CustomCommand"
        }]
    },
    model: {
        foo: "bar",
        baz: 5
    }
});
</script>