Edit this page

imageUrl String

Defines a URL, which will be used for an img element inside the Button. The URL can be relative or absolute. In case it is relative, it will be evaluated with relation to the web page URL.

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

Example

<button id="button" type="button">Edit</button>
<script>
$("#button").kendoButton({
    imageUrl: "/images/edit-icon.gif"
});
</script>

Example with an existing img element

<button id="button" type="button">
    <img class="k-image" alt="Edit" /> Edit
</button>
<script>
$("#button").kendoButton({
    imageUrl: "/images/edit-icon.gif"
});
</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