spriteCssClass String

Defines a CSS class (or multiple classes separated by spaces), which will be used for applying a background image to a span element inside the Button. In case you want to use an icon from the Kendo UI theme sprite background image, it is easier to use the icon property.

The span element can be added automatically by the widget, or an existing element can be used, if it has a k-sprite CSS class applied.

Example

<button id="button" type="button">Edit</button>
<script>
    $("#button").kendoButton({
        spriteCssClass: "myEditIcon"
    });
</script>

Example with an existing span element

<button id="button" type="button">
    <span class="k-sprite"></span> Edit
</button>
<script>
    $("#button").kendoButton({
        spriteCssClass: "myEditIcon"
    });
</script>
In this article