Edit this page

icon String

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 Button. The span element can be added automatically by the widget, or an existing element can be used, if it has a k-icon CSS class applied. For a list of available icon names, please refer to the Icons demo.

Example

<button id="button" type="button">Cancel</button>
<script>
$("#button").kendoButton({
    icon: "cancel"
});
</script>

Example with an existing span element

<button id="button" type="button">
    <span class="k-icon"></span> Cancel
</button>
<script>
$("#button").kendoButton({
    icon: "cancel"
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy