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

Actions.icon

configuration

Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be applied as background image of a span element inside the action button. For a list of available icon names, please refer to the List of 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.

actions.icon

String|Object
<div id="dialog"></div>
<script>
    $("#dialog").kendoDialog({
      title: "Kendo Dialog Component",
      content: "This is your Kendo Dialog.",
      actions: [
        { text: "OK"},
        { text: "Delete", themeColor: "error", icon: "trash" }
      ]
    });
</script>

The name of the SVG icon.

<div id="dialog"></div>
<script>
    $("#dialog").kendoDialog({
      title: "Kendo Dialog Component",
      content: "This is your Kendo Dialog.",
      actions: [
        { text: "OK"},
        { text: "Delete", themeColor: "error", icon: { name: "trash" } }
      ]
    });
</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="dialog"></div>
<script>
    $("#dialog").kendoDialog({
      title: "Kendo Dialog Component",
      content: "This is your Kendo Dialog.",
      actions: [
        { text: "OK"},
        { text: "Delete", themeColor: "error", icon: { name: "trash", variant: "outline" } }
      ]
    });
</script>