JQuery JQueryMobile: Difference between revisions

From Wiki RB4
Line 22: Line 22:
===<a>===
===<a>===
  data-icon="['''home'''|'''grid'''|'''info''']"
  data-icon="['''home'''|'''grid'''|'''info''']"
data-iconpos="notext"


===<ul>===
===<ul>===

Revision as of 21:36, 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

footer

data-position="fixed"

header

listview

<a>

data-icon="[home|grid|info]"
data-iconpos="notext"

<ul>

data-role="listview"
data-filter="true" // makes the list searchable

Resources