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

Items.badge.icon

configuration

Defines the name for an existing icon in a Kendo UI theme. The icon is rendered inside the badge by a span.k-icon element.

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.badge.icon

String|Object

Default: ''

<div id="buttonGroup"></div>
<script>
$("#buttonGroup").kendoButtonGroup({
    items: [
        {
            text: "Alert",
            badge: {
                icon: "warning"
            }
        },
        {
            text: "Success",
            badge: {
                icon: "check"
            }
        }
    ]
});
</script>

The name of the SVG icon.

<div id="buttonGroup"></div>
<script>
$("#buttonGroup").kendoButtonGroup({
    items: [
        {
            text: "Alert",
            badge: {
                icon: {
                    name: "warning"
                }
            }
        },
        {
            text: "Success",
            badge: {
                icon: {
                    name: "check"
                }
            }
        }
    ]
});
</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="buttonGroup"></div>
<script>
$("#buttonGroup").kendoButtonGroup({
    items: [
        {
            text: "Alert",
            badge: {
                icon: {
                    name: "warning",
                    variant: "outline"
                }
            }
        },
        {
            text: "Success",
            badge: {
                icon: {
                    name: "check",
                    variant: "outline"
                }
            }
        }
    ]
});
</script>