The Button widget

We got introduced to Kendo Mobile Button widget in Chapter 2, Building Your First Mobile Application. In this chapter we will learn more about this widget and how to customize it. Button is one of the simplest widgets in the Kendo UI Mobile widget stack with a couple of methods and only the click event associated to it. It is used to navigate to a view (local or remote) or to call a JavaScript function when the click event is fired.

The Button widget

Button can be initialized either declaratively using an anchor tag or an HTML5 <button> tag by setting the role data attribute:

<div data-role="view"> <br/> <button data-role="button" data-click="buttonClick" ...

Get Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.