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

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.

badge.icon

String|Object

Default: ''

<button id="button">Button</button>
<script>
  $("#button").kendoButton({
    badge: {
      icon: "check",
      themeColor: "success"
    }
  });
</script>

The name of the SVG icon.

<button id="button">Button</button>
<script>
  $("#button").kendoButton({
    badge: {
      icon: {
          name: "check"
      },
      themeColor: "success"
    }
  });
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<button id="button">Button</button>
<script>
  $("#button").kendoButton({
    badge: {
      icon: {
          name: "check",
          variant: "outline"
      },
      themeColor: "success"
    }
  });
</script>