May 2017
Intermediate to advanced
448 pages
10h 10m
English
Another user interface element enhanced by jQuery Mobile is the simple button. Just as jQuery UI allows us to standardize button appearances, jQuery Mobile increases the size and modifies the appearance of buttons to optimize them for touch input.
In some cases, jQuery Mobile even creates appropriate buttons for us where before there were none. For instance, there are often buttons in the toolbar of a mobile app. One standard button is the Back button in the upper-left corner of the screen, allowing the user to navigate up one level. If we add a data-add-back-btn attribute to our page <div> elements, we can have this feature without any scripting work:
<div data-role="page" data-add-back-btn="true">
Once this attribute has ...
Read now
Unlock full access