JQuery JQueryMobile: Difference between revisions
(→a tag) |
(→ul tag) |
||
| Line 23: | Line 23: | ||
data-icon="['''home'''|'''grid'''|'''info''']" | data-icon="['''home'''|'''grid'''|'''info''']" | ||
===ul | ===<ul>=== | ||
data-role="listview" | data-role="listview" | ||
data-filter="true" // makes the list searchable | data-filter="true" // makes the list searchable | ||
Revision as of 21:27, 30 May 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
data-position="fixed"
header
listview
<a>
data-icon="[home|grid|info]"
<ul>
data-role="listview" data-filter="true" // makes the list searchable