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: "https://demos.telerik.com/kendo-ui/content/web/treeview/edit.png"
});
</script>
Example with an existing img element
<button id="button" type="button">
<img class="k-image" alt="Edit" /> Edit
</button>
<script>
$("#button").kendoButton({
imageUrl: "https://demos.telerik.com/kendo-ui/content/web/treeview/edit.png"
});
</script>