PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/demos/widgets/listviews/index.php

https://github.com/ash1982ok/jquery-mobile
PHP | 566 lines | 534 code | 32 blank | 0 comment | 9 complexity | 720ca1163a1c6d52202be04cc7af146e MD5 | raw file
Possible License(s): CC-BY-3.0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Listviews - jQuery Mobile Demos</title>
  7. <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
  8. <link rel="stylesheet" href="../../_assets/css/jqm-demos.css">
  9. <link rel="shortcut icon" href="../../favicon.ico">
  10. <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
  11. <script src="../../../js/jquery.js"></script>
  12. <script src="../../_assets/js/"></script>
  13. <script src="../../../js/"></script>
  14. <style id="custom-icon">
  15. .ui-icon-custom {
  16. background-image: url("../../_assets/img/glyphish-icons/21-skull.png");
  17. background-position: 3px 3px;
  18. background-size: 70%;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div data-role="page" class="jqm-demos" data-quicklinks="true">
  24. <div data-role="header" class="jqm-header">
  25. <h1 class="jqm-logo"><a href="../../"><img src="../../_assets/img/jquery-logo.png" alt="jQuery Mobile Framework"></a></h1>
  26. <a href="#" class="jqm-navmenu-link" data-icon="bars" data-iconpos="notext">Navigation</a>
  27. <a href="#" class="jqm-search-link" data-icon="search" data-iconpos="notext">Search</a>
  28. <?php include( '../../search.php' ); ?>
  29. </div><!-- /header -->
  30. <div data-role="content" class="jqm-content">
  31. <h1>Listviews <a href="http://api.jquerymobile.com/listview/" data-ajax="false" data-role="button" data-inline="true" data-mini="true" data-icon="arrow-r" data-iconpos="right" class="jqm-api-link">API</a></h1>
  32. <p class="jqm-intro">A listview is coded as a simple unordered list (ul) or ordered list (ol) with a <code> data-role="listview"</code> attribute and has a wide range of features.
  33. </p>
  34. <h2 id="list-ul">Read-only, unordered</h2>
  35. <p>A listview is a simple unordered list containing linked list items with a <code> data-role="listview"</code> attribute.</p>
  36. <div data-demo-html="true">
  37. <ul data-role="listview">
  38. <li>Acura</li>
  39. <li>Audi</li>
  40. <li>BMW</li>
  41. <li>Cadillac</li>
  42. <li>Ferrari</li>
  43. </ul>
  44. </div><!--/demo-html -->
  45. <h2 id="list-ol">Read-only, ordered</h2>
  46. <p>Lists can also be created from ordered lists (<code>ol</code>) which is useful when presenting items that are in a sequence such as search results or a movie queue.</p>
  47. <div data-demo-html="true">
  48. <ol data-role="listview">
  49. <li>Acura</li>
  50. <li>Audi</li>
  51. <li>BMW</li>
  52. <li>Cadillac</li>
  53. <li>Ferrari</li>
  54. </ol>
  55. </div><!--/demo-html -->
  56. <h2 id="list-linked">Linked</h2>
  57. <p>Wrapping the contents of each list item makes it clickable; a right arrow indicator makes this clear.
  58. <div data-demo-html="true">
  59. <ul data-role="listview">
  60. <li><a href="#">Acura</a></li>
  61. <li><a href="#">Audi</a></li>
  62. <li><a href="#">BMW</a></li>
  63. <li><a href="#">Cadillac</a></li>
  64. <li><a href="#">Ferrari</a></li>
  65. </ul>
  66. </div><!--/demo-html -->
  67. <h2 id="list-inset">Inset</h2>
  68. <p>Adding the <code> data-inset="true"</code> attribute to the list (ul or ol), applies the inset appearance which is useful for mixing a listview with other content on a page.</p>
  69. <div data-demo-html="true">
  70. <ul data-role="listview" data-inset="true">
  71. <li><a href="#">Acura</a></li>
  72. <li><a href="#">Audi</a></li>
  73. <li><a href="#">BMW</a></li>
  74. <li><a href="#">Cadillac</a></li>
  75. <li><a href="#">Ferrari</a></li>
  76. </ul>
  77. </div><!--/demo-html -->
  78. <h2 id="list-filter">Filter</h2>
  79. <p>To make a list filterable, simply add the <code>data-filter="true"</code> attribute to the list. The framework will then append a search box above the list and add the behavior to filter out list items that don't contain the current search string as the user types. The input's placeholder text defaults to "Filter items...". To configure the placeholder text in the search input, use the <code>data-filter-placeholder</code> attribute. By default the search box will inherit its theme from its parent. The search box theme can be configured using the data attribute <code>data-filter-theme</code> on your listview.</p>
  80. <div data-demo-html="true">
  81. <ul data-role="listview" data-filter="true" data-filter-placeholder="Search fruits..." data-inset="true">
  82. <li><a href="#">Apple</a></li>
  83. <li><a href="#">Banana</a></li>
  84. <li><a href="#">Cherry</a></li>
  85. <li><a href="#">Cranberry</a></li>
  86. <li><a href="#">Grape</a></li>
  87. <li><a href="#">Orange</a></li>
  88. </ul>
  89. </div><!--/demo-html -->
  90. <h2 id="list-reveal">Filter reveal</h2>
  91. <p>The filter reveal feature makes it easy to build a simple autocomplete with local data. When a filterable list has the <code>data-filter-reveal="true"</code> attribute, it will auto-hide all the list items when the search field is blank. The <code>data-filter-placeholder</code> attribute can be added to specify the placeholder text for the filter. If you need to search against a long list of values, we provide a way to create a filter with a <a href="../autocomplete/autocomplete-remote.php" data-ajax="false">remote data source</a>.</p>
  92. <div data-demo-html="true">
  93. <ul data-role="listview" data-filter="true" data-filter-reveal="true" data-filter-placeholder="Search fruits..." data-inset="true">
  94. <li><a href="#">Apple</a></li>
  95. <li><a href="#">Banana</a></li>
  96. <li><a href="#">Cherry</a></li>
  97. <li><a href="#">Cranberry</a></li>
  98. <li><a href="#">Grape</a></li>
  99. <li><a href="#">Orange</a></li>
  100. </ul>
  101. </div><!--/demo-html -->
  102. <h2 id="list-dividers">List dividers</h2>
  103. <p>List items can be turned into dividers to organize and group the list items. This is done by adding the <code> data-role="list-divider"</code> to any list item. These items are styled with the bar swatch "b" by default (blue in the default theme) but you can specify a theme for dividers by adding the <code>data-divider-theme</code> attribute to the list element (<code>ul</code> or <code>ol</code>) and specifying a theme swatch letter. You can override the divider-theme for a specific divider by adding the <code>data-theme</code> attribute to the list item.</p>
  104. <div data-demo-html="true">
  105. <ul data-role="listview" data-inset="true" data-divider-theme="d">
  106. <li data-role="list-divider">Mail</li>
  107. <li><a href="#">Inbox</a></li>
  108. <li><a href="#">Outbox</a></li>
  109. <li data-role="list-divider">Contacts</li>
  110. <li><a href="#">Friends</a></li>
  111. <li><a href="#">Work</a></li>
  112. </ul>
  113. </div><!--/demo-html -->
  114. <h2 id="list-autodividers">Autodividers</h2>
  115. <p><p>A listview can be configured to automatically generate dividers for its items by adding a <code>data-autodividers="true"</code> attribute to any listview. By default, the text used to create dividers is the uppercased first letter of the item's text. Alternatively you can specify divider text by setting the <code>autodividersSelector</code> option on the listview programmatically. This feature is designed to work seamlessly with the filter.</p>
  116. <div data-demo-html="true">
  117. <ul data-role="listview" data-autodividers="true" data-filter="true" data-inset="true">
  118. <li><a href="index.html">Adam Kinkaid</a></li>
  119. <li><a href="index.html">Alex Wickerham</a></li>
  120. <li><a href="index.html">Avery Johnson</a></li>
  121. <li><a href="index.html">Bob Cabot</a></li>
  122. <li><a href="index.html">Caleb Booth</a></li>
  123. <li><a href="index.html">Christopher Adams</a></li>
  124. <li><a href="index.html">Culver James</a></li>
  125. </ul>
  126. </div><!--/demo-html -->
  127. <h2 id="list-count">Count bubbles</h2>
  128. <p>To add a count indicator to the right of the list item, wrap the number in an element with a class of <code>ui-li-count</code>. The theme for <strong>count bubbles</strong> can be set by adding the <code>data-count-theme</code> to the list and specifying a swatch letter. </p>
  129. <div data-demo-html="true">
  130. <ul data-role="listview" data-count-theme="c" data-inset="true">
  131. <li><a href="#">Inbox <span class="ui-li-count">12</span></a></li>
  132. <li><a href="#">Outbox <span class="ui-li-count">0</span></a></li>
  133. <li><a href="#">Drafts <span class="ui-li-count">4</span></a></li>
  134. <li><a href="#">Sent <span class="ui-li-count">328</span></a></li>
  135. <li><a href="#">Trash <span class="ui-li-count">62</span></a></li>
  136. </ul>
  137. </div><!--/demo-html -->
  138. <h2 id="list-icons">Icons: Standard</h2>
  139. <p>The default icon for each list item containing a link is <code>arrow-r</code>. To override this, set the <code>data-icon</code> attribute on the desired list item to the <a href="../icons/">name of a standard icon</a>. To prevent icons from appearing altogether, set the <code> data-icon</code> attribute to &quot;false&quot;. With a bit of custom styling it's also possible to use third party icons.</p>
  140. <div data-demo-html="true" data-demo-css="#custom-icon">
  141. <ul data-role="listview" data-inset="true" data-theme="c">
  142. <li data-icon="custom" id="skull"><a href="#">custom-icon</a></li>
  143. <li data-icon="delete"><a href="#">data-icon="delete"</a></li>
  144. <li data-icon="gear"><a href="#">data-icon="gear"</a></li>
  145. <li data-icon="info"><a href="#">data-icon="info"</a></li>
  146. <li data-icon="false"><a href="#">data-icon="false"</a></li>
  147. </ul>
  148. </div><!--/demo-html -->
  149. <h2 id="list-16">Icons: 16x16</h2>
  150. <p>To use standard 16x16 pixel icons in list items, add the class of <code>ui-li-icon</code> to the image element and insert 16x16 icons as <code>img</code> tags inside the list items.</p>
  151. <div data-demo-html="true">
  152. <ul data-role="listview" data-inset="true">
  153. <li><a href="#"><img src="../../_assets/img/gf.png" alt="France" class="ui-li-icon ui-corner-none">France</a></li>
  154. <li><a href="#"><img src="../../_assets/img/de.png" alt="Germany" class="ui-li-icon">Germany</a></li>
  155. <li><a href="#"><img src="../../_assets/img/gb.png" alt="Great Britain" class="ui-li-icon">Great Britain</a></li>
  156. <li><a href="#"><img src="../../_assets/img/fi.png" alt="Finland" class="ui-li-icon">Finland</a></li>
  157. <li><a href="#"><img src="../../_assets/img/us.png" alt="United States" class="ui-li-icon ui-corner-none">United States</a></li>
  158. </ul>
  159. </div><!--/demo-html -->
  160. <h2 id="list-thumb">Thumbnails</h2>
  161. <p>To add thumbnails to the left of a list item, simply add an image inside a list item as the first child element. The framework will scale the image to 80 pixels square.</p>
  162. <div data-demo-html="true">
  163. <ul data-role="listview" data-inset="true">
  164. <li><a href="#">
  165. <img src="../../_assets/img/album-bb.jpg" />
  166. <h2>Broken Bells</h2>
  167. <p>Broken Bells</p></a>
  168. </li>
  169. <li><a href="#">
  170. <img src="../../_assets/img/album-hc.jpg" />
  171. <h2>Warning</h2>
  172. <p>Hot Chip</p></a>
  173. </li>
  174. <li><a href="#">
  175. <img src="../../_assets/img/album-p.jpg" />
  176. <h2>Wolfgang Amadeus Phoenix</h2>
  177. <p>Phoenix</p></a>
  178. </li>
  179. </ul>
  180. </div><!--/demo-html -->
  181. <h2 id="list-split">Split buttons</h2>
  182. <p>To make a split list item, simply add a second link inside the <code>li</code>. To adjust the split button icon, add the <code>data-split-icon</code> attribute to the listview . Add the <code>data-icon</code> attribute to individual list items for more control. The theme swatch color of the split button defaults to "b" (blue in the default theme) but can be set by specifying a swatch letter with the <code>data-split-theme</code> attribute at the listview level or for individual splits with the <code>data-theme</code> attribute at the link level.</p>
  183. <div data-demo-html="true">
  184. <ul data-role="listview" data-split-icon="gear" data-split-theme="d" data-inset="true">
  185. <li><a href="#">
  186. <img src="../../_assets/img/album-bb.jpg" />
  187. <h2>Broken Bells</h2>
  188. <p>Broken Bells</p></a>
  189. <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
  190. </li>
  191. <li><a href="#">
  192. <img src="../../_assets/img/album-hc.jpg" />
  193. <h2>Warning</h2>
  194. <p>Hot Chip</p></a>
  195. <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
  196. </li>
  197. <li><a href="#">
  198. <img src="../../_assets/img/album-p.jpg" />
  199. <h2>Wolfgang Amadeus Phoenix</h2>
  200. <p>Phoenix</p></a>
  201. <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
  202. </li>
  203. </ul>
  204. <div data-role="popup" id="purchase" data-theme="d" data-overlay-theme="b" class="ui-content" style="max-width:340px; padding-bottom:2em;">
  205. <h3>Purchase Album?</h3>
  206. <p>Your download will begin immediately on your mobile device when you purchase.</p>
  207. <a href="index.html" data-role="button" data-rel="back" data-theme="b" data-icon="check" data-inline="true" data-mini="true">Buy: $10.99</a>
  208. <a href="index.html" data-role="button" data-rel="back" data-inline="true" data-mini="true">Cancel</a>
  209. </div>
  210. </div><!--/demo-html -->
  211. <h2 id="list-formatted">Formatted content</h2>
  212. <p>To add text hierarchy, use headings to increase font emphasis and use paragraphs to reduce emphasis. Supplemental information can be added to the right of each list item by wrapping content in an element with a class of <code>ui-li-aside</code></p>
  213. <div data-demo-html="true">
  214. <ul data-role="listview" data-inset="true">
  215. <li data-role="list-divider">Friday, October 8, 2010 <span class="ui-li-count">2</span></li>
  216. <li><a href="index.html">
  217. <h2>Stephen Weber</h2>
  218. <p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
  219. <p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
  220. <p class="ui-li-aside"><strong>6:24</strong>PM</p>
  221. </a></li>
  222. <li><a href="index.html">
  223. <h2>jQuery Team</h2>
  224. <p><strong>Boston Conference Planning</strong></p>
  225. <p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
  226. <p class="ui-li-aside"><strong>9:18</strong>AM</p>
  227. </a></li>
  228. <li data-role="list-divider">Thursday, October 7, 2010 <span class="ui-li-count">1</span></li>
  229. <li><a href="index.html">
  230. <h2>Avery Walker</h2>
  231. <p><strong>Re: Dinner Tonight</strong></p>
  232. <p>Sure, let's plan on meeting at Highland Kitchen at 8:00 tonight. Can't wait! </p>
  233. <p class="ui-li-aside"><strong>4:48</strong>PM</p>
  234. </a></li>
  235. </ul>
  236. </div><!--/demo-html -->
  237. <h2 id="list-theme">Theme</h2>
  238. <p>The list item color scheme can be changed to any button color theme swatch by adding the <code> data-theme</code> attribute to the listview or to individual list items. The theme for <strong>list dividers</strong> can be set by adding the <code>data-divider-theme</code> to the list. The theme for <strong>count bubbles</strong> can be set by adding the <code>data-count-theme</code> to the list.</p>
  239. <div data-demo-html="true">
  240. <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="e" data-count-theme="b">
  241. <li data-role="list-divider">Divider</li>
  242. <li><a href="index.html" data-theme="e">Inbox <span class="ui-li-count">12</span></a></li>
  243. <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
  244. <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
  245. </ul>
  246. </div><!--/demo-html -->
  247. <p>To specify the swatch for the split button, add the <code>data-split-theme</code> to the list and specify a swatch letter. This attribute can also be added to individual split inside list items by adding a <code> data-theme</code> attribute to specific links (see second list item). The icon for the split button can be set at the list level by adding the <code>data-split-icon</code>.</p>
  248. <div data-demo-html="true">
  249. <ul data-role="listview" data-split-icon="plus" data-theme="a" data-split-theme="b" data-split-icon="plus" data-inset="true">
  250. <li><a href="#">
  251. <h2>Broken Bells</h2>
  252. <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
  253. </li>
  254. <li><a href="#">
  255. <h2>Phoenix</h2>
  256. <a href="#purchase" data-theme="e" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
  257. </li>
  258. </ul>
  259. </div><!--/demo-html -->
  260. <p>The white icon sprite is used by default in the theme. Adding the <code>ui-icon-alt</code> class to the list switches to the black sprite and gets rid of the dark disc.</p>
  261. <div data-demo-html="true">
  262. <ul data-role="listview" data-inset="true" class="ui-icon-alt">
  263. <li><a href="#">Acura</a></li>
  264. <li><a href="#">Audi</a></li>
  265. <li><a href="#">BMW</a></li>
  266. <li><a href="#">Cadillac</a></li>
  267. <li><a href="#">Ferrari</a></li>
  268. </ul>
  269. </div><!--/demo-html -->
  270. <h2 id="list-forms">Forms</h2>
  271. <p>Any form element can be placed inside a listview for a grouped presentation.</p>
  272. <div data-demo-html="true">
  273. <form>
  274. <ul data-role="listview" data-inset="true">
  275. <li data-role="fieldcontain">
  276. <label for="name2">Text Input:</label>
  277. <input type="text" name="name2" id="name2" value="" data-clear-btn="true">
  278. </li>
  279. <li data-role="fieldcontain">
  280. <label for="textarea2">Textarea:</label>
  281. <textarea cols="40" rows="8" name="textarea2" id="textarea2"></textarea>
  282. </li>
  283. <li data-role="fieldcontain">
  284. <label for="flip2">Flip switch:</label>
  285. <select name="flip2" id="flip2" data-role="slider">
  286. <option value="off">Off</option>
  287. <option value="on">On</option>
  288. </select>
  289. </li>
  290. <li data-role="fieldcontain">
  291. <label for="slider2">Slider:</label>
  292. <input type="range" name="slider2" id="slider2" value="0" min="0" max="100" data-highlight="true">
  293. </li>
  294. <li data-role="fieldcontain">
  295. <label for="select-choice-1" class="select">Choose shipping method:</label>
  296. <select name="select-choice-1" id="select-choice-1">
  297. <option value="standard">Standard: 7 day</option>
  298. <option value="rush">Rush: 3 days</option>
  299. <option value="express">Express: next day</option>
  300. <option value="overnight">Overnight</option>
  301. </select>
  302. </li>
  303. <li class="ui-body ui-body-b">
  304. <fieldset class="ui-grid-a">
  305. <div class="ui-block-a"><button type="submit" data-theme="d">Cancel</button></div>
  306. <div class="ui-block-b"><button type="submit" data-theme="a">Submit</button></div>
  307. </fieldset>
  308. </li>
  309. </ul>
  310. </form>
  311. </div><!--/demo-html -->
  312. <h2 id="list-collapse">Collapsible listview</h2>
  313. <p>This is an example of a listview wrapped in a container with <code>data-role="collapsible"</code>.</p>
  314. <div data-demo-html="true">
  315. <div data-role="collapsible" data-theme="b" data-content-theme="c">
  316. <h2>Choose a car model...</h2>
  317. <ul data-role="listview" data-filter="true">
  318. <li><a href="index.html">Acura</a></li>
  319. <li><a href="index.html">Audi</a></li>
  320. <li><a href="index.html">BMW</a></li>
  321. <li><a href="index.html">Cadillac</a></li>
  322. <li><a href="index.html">Chrysler</a></li>
  323. <li><a href="index.html">Dodge</a></li>
  324. <li><a href="index.html">Ferrari</a></li>
  325. <li><a href="index.html">Ford</a></li>
  326. <li><a href="index.html">GMC</a></li>
  327. <li><a href="index.html">Honda</a></li>
  328. </ul>
  329. </div>
  330. </div><!--/demo-html -->
  331. <h2 id="list-grouped">Grouped collapsible with listviews</h2>
  332. <p>You can also use listviews inside a <a href="../accordions/">collapsible set</a> (accordion) to visually group the list and ensure that only a single item can be open at once.</p>
  333. <div data-demo-html="true">
  334. <div data-role="collapsible-set" data-theme="b" data-content-theme="d">
  335. <div data-role="collapsible">
  336. <h2>Filtered list</h2>
  337. <ul data-role="listview" data-filter="true" data-filter-theme="c" data-divider-theme="d">
  338. <li><a href="index.html">Adam Kinkaid</a></li>
  339. <li><a href="index.html">Alex Wickerham</a></li>
  340. <li><a href="index.html">Avery Johnson</a></li>
  341. <li><a href="index.html">Bob Cabot</a></li>
  342. <li><a href="index.html">Caleb Booth</a></li>
  343. </ul>
  344. </div>
  345. <div data-role="collapsible">
  346. <h2>Formatted text</h2>
  347. <ul data-role="listview" data-theme="d" data-divider-theme="d">
  348. <li data-role="list-divider">Friday, October 8, 2010 <span class="ui-li-count">2</span></li>
  349. <li><a href="index.html">
  350. <h3>Stephen Weber</h3>
  351. <p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
  352. <p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
  353. <p class="ui-li-aside"><strong>6:24</strong>PM</p>
  354. </a></li>
  355. <li><a href="index.html">
  356. <h3>jQuery Team</h3>
  357. <p><strong>Boston Conference Planning</strong></p>
  358. <p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
  359. <p class="ui-li-aside"><strong>9:18</strong>AM</p>
  360. </a></li>
  361. </ul>
  362. </div>
  363. <div data-role="collapsible">
  364. <h2>Thumbnails and split button</h2>
  365. <ul data-role="listview" data-split-icon="gear" data-split-theme="d">
  366. <li><a href="index.html">
  367. <img src="../../_assets/img/album-bb.jpg" />
  368. <h3>Broken Bells</h3>
  369. <p>Broken Bells</p>
  370. </a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
  371. </a></li>
  372. <li><a href="index.html">
  373. <img src="../../_assets/img/album-hc.jpg" />
  374. <h3>Warning</h3>
  375. <p>Hot Chip</p>
  376. </a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
  377. </a></li>
  378. <li><a href="index.html">
  379. <img src="../../_assets/img/album-p.jpg" />
  380. <h3>Wolfgang Amadeus Phoenix</h3>
  381. <p>Phoenix</p>
  382. </a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
  383. </a></li>
  384. </ul>
  385. </div>
  386. </div>
  387. </div><!--/demo-html -->
  388. <h2 id="list-full">Full width collapsible listview</h2>
  389. <p>Setting <code>data-inset="false"</code> on a collapsible or a collapsible set makes the collapsible full width (non-inset), like a full width listview.</p>
  390. <div data-demo-html="true">
  391. <div data-role="collapsible-set" data-theme="c" data-content-theme="d" data-inset="false">
  392. <div data-role="collapsible">
  393. <h2>Mailbox</h2>
  394. <ul data-role="listview">
  395. <li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li>
  396. <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
  397. <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
  398. <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
  399. <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
  400. </ul>
  401. </div>
  402. <div data-role="collapsible">
  403. <h2>Calendar</h2>
  404. <ul data-role="listview" data-theme="d" data-divider-theme="d">
  405. <li data-role="list-divider">Friday, October 8, 2010 <span class="ui-li-count">2</span></li>
  406. <li><a href="index.html">
  407. <h3>Stephen Weber</h3>
  408. <p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
  409. <p>Hey Stephen, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
  410. <p class="ui-li-aside"><strong>6:24</strong>PM</p>
  411. </a></li>
  412. <li><a href="index.html">
  413. <h3>jQuery Team</h3>
  414. <p><strong>Boston Conference Planning</strong></p>
  415. <p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
  416. <p class="ui-li-aside"><strong>9:18</strong>AM</p>
  417. </a></li>
  418. <li data-role="list-divider">Thursday, October 7, 2010 <span class="ui-li-count">1</span></li>
  419. <li><a href="index.html">
  420. <h3>Avery Walker</h3>
  421. <p><strong>Re: Dinner Tonight</strong></p>
  422. <p>Sure, let's plan on meeting at Highland Kitchen at 8:00 tonight. Can't wait! </p>
  423. <p class="ui-li-aside"><strong>4:48</strong>PM</p>
  424. </a></li>
  425. <li data-role="list-divider">Wednesday, October 6, 2010 <span class="ui-li-count">3</span></li>
  426. <li><a href="index.html">
  427. <h3>Amazon.com</h3>
  428. <p><strong>4-for-3 Books for Kids</strong></p>
  429. <p>As someone who has purchased children's books from our 4-for-3 Store, you may be interested in these featured books.</p>
  430. <p class="ui-li-aside"><strong>12:47</strong>PM</p>
  431. </a></li>
  432. </ul>
  433. </div>
  434. <div data-role="collapsible">
  435. <h2>Contacts</h2>
  436. <ul data-role="listview" data-autodividers="true" data-theme="d" data-divider-theme="d">
  437. <li><a href="index.html">Adam Kinkaid</a></li>
  438. <li><a href="index.html">Alex Wickerham</a></li>
  439. <li><a href="index.html">Avery Johnson</a></li>
  440. <li><a href="index.html">Bob Cabot</a></li>
  441. <li><a href="index.html">Caleb Booth</a></li>
  442. <li><a href="index.html">Christopher Adams</a></li>
  443. <li><a href="index.html">Culver James</a></li>
  444. </ul>
  445. </div>
  446. </div>
  447. </div><!--/demo-html -->
  448. <h2 id="list-nested">Nested</h2>
  449. <p>By nesting child <code>ul</code> or <code>ol</code> inside list items, you can create nested lists. To set the swatch color of the child listviews, set the <code>data-theme</code> attribute on each list inside.</p>
  450. <p><strong>Warning: Nested listviews are deprecated as of 1.3.0 and will be removed in future versions.</strong></p>
  451. <div data-demo-html="true">
  452. <ul data-role="listview" data-header-theme="e">
  453. <li>Animals
  454. <ul>
  455. <li>Pets
  456. <ul>
  457. <li><a href="index.html">Canary</a></li>
  458. <li><a href="index.html">Cat</a></li>
  459. <li><a href="index.html">Dog</a></li>
  460. </ul>
  461. </li>
  462. <li>Farm animals
  463. <ul>
  464. <li><a href="index.html">Chicken</a></li>
  465. <li><a href="index.html">Cow</a></li>
  466. <li><a href="index.html">Sheep</a></li>
  467. </ul>
  468. </li>
  469. <li>Wild animals>
  470. <ul>
  471. <li><a href="index.html">Alligator</a></li>
  472. <li><a href="index.html">Bear</a></li>
  473. <li><a href="index.html">Zebra</a></li>
  474. </ul>
  475. </li>
  476. </ul>
  477. </li>
  478. <li>Colors
  479. <ul>
  480. <li><a href="index.html">Blue</a></li>
  481. <li><a href="index.html">Green</a></li>
  482. <li><a href="index.html">Red</a></li>
  483. </ul>
  484. </li>
  485. <li>Vehicles
  486. <ul>
  487. <li>Cars
  488. <ul>
  489. <li><a href="index.html">Audi</a></li>
  490. <li><a href="index.html">BMW</a></li>
  491. <li><a href="index.html">Volkswagen</a></li>
  492. </ul>
  493. </li>
  494. <li>Planes
  495. <ul>
  496. <li><a href="index.html">Boeing</a></li>
  497. <li><a href="index.html">Embraer</a></li>
  498. <li><a href="index.html">Airbus</a></li>
  499. </ul>
  500. </li>
  501. </ul>
  502. </li>
  503. </ul>
  504. </div><!--/demo-html -->
  505. </div><!-- /content -->
  506. <div data-role="footer" class="jqm-footer">
  507. <p class="jqm-version"></p>
  508. <p>Copyright 2013 The jQuery Foundation</p>
  509. </div><!-- /footer -->
  510. <?php include( '../../global-nav.php' ); ?>
  511. </div><!-- /page -->
  512. </body>
  513. </html>