JQuery JQueryMobile: Difference between revisions

From Wiki RB4
Line 7: Line 7:
==API==
==API==
*'''$()''' is short of jQuery()
*'''$()''' is short of jQuery()
*uses the '''data-role''' attribute
*uses the [[#data-roles]]'''data-role''' attribute


===data-roles===
===data-roles===

Revision as of 20:58, 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-rolesdata-role attribute

data-roles

  • content
  • listview

ul tag

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

Resources