JQuery JQueryMobile: Difference between revisions
(→footer) |
(→header) |
||
| Line 16: | Line 16: | ||
data-position="fixed" | data-position="fixed" | ||
====header==== | ====header role==== | ||
====listview==== | ====listview==== | ||
Revision as of 18:37, 1 June 2014
Concepts
jMobile web pages consist of different pages:
<div data-role="page" id="p1">content p1</div> <div data-role="page" id="p2">content p2</div>
API
- $() is short of jQuery()
- uses the data-role attribute
data-roles
content role
data-position="fixed"
header role
listview
<a>
data-icon="[home|grid|info]" data-iconpos="notext" data-transition="slidedown"
<ul>
data-role="listview" data-filter="true" // makes the list searchable