This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
lists.html
156 lines (122 loc) · 3.68 KB
/
lists.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!--
jQuery Mobile Boilerplate
/snippets/lists.html
-->
<!doctype html>
<html>
<head>
<title> jQuery Mobile Boilerplate - Listviews</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery Mobile CSS bits -->
<link rel="stylesheet" href="css/jquery.mobile-1.4.0.min.css" />
<!-- Custom css -->
<link rel="stylesheet" href="css/custom.css" />
<!-- Javascript includes -->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/mobileinit.js"></script>
<script src="js/jquery.mobile-1.4.0.js"></script>
<script src="js/application.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="index.html" data-icon="home">Home</a>
<h1>Listsviews</h1>
</div>
<div data-role="content">
<h2>Basic Listview</h2>
<ul data-role="listview" data-inset="true">
<li>Robert Heinlein</li>
<li>SM Stirling</li>
<li>Julian May</li>
<li>JRR Tolkien</li>
<li>Piers Anthony</li>
</ul>
<h2>Linked List</h2>
<ul data-role="listview" data-inset="true">
<li><a href="../index.html">Robert Heinlein</a></li>
<li><a href="../index.html">SM Stirling</a></li>
<li><a href="../index.html">Julian May</a></li>
</ul>
<h2>Nested Lists</h2>
<p>
Nested listviews were deprecated in jQuery Mobile 1.3 and were removed in 1.4. For those wishing to use the 1.3 behaivor there is a plugin available at <a href="https://github.com/arschmitz/jquery-mobile-nestedlists/" class="ui-link">https://github.com/arschmitz/jquery-mobile-nestedlists/</a>. With this plugin you can just drop it in after the jQuery mobile script to be able to use jQuery mobile 1.3 style nested listviews. You can use the same markup all you need to do is drop in the script.
</p>
<h2>Numbered List</h2>
<ol data-role="listview" data-inset="true">
<li><a href="index.html">Robert Heinlein</a></li>
<li><a href="index.html">SM Stirling</a></li>
<li><a href="index.html">Julian May</a></li>
</ol>
<h2>Split-Button List</h2>
<ul data-role="listview" data-split-icon="gear" data-split-theme="d" data-inset="true">
<li><a href="index.html">
<img src="images/broken-bells.jpg" />
<h3>Broken Bells</h3>
<p>Broken Bells</p>
</a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
</a></li>
<li><a href="index.html">
<img src="images/hot-chip.jpg" />
<h3>Warning</h3>
<p>Hot Chip</p>
</a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
</a></li>
<li><a href="index.html">
<img src="images/phoenix.jpg" />
<h3>Wolfgang Amadeus Phoenix</h3>
<p>Phoenix</p>
</a><a href="lists-split-purchase.html" data-rel="dialog" data-transition="slideup">Purchase album
</a></li>
</ul>
<h2>List Dividers</h2>
<ul data-role="listview" data-inset="true">
<li>Men</li>
<li>Robert Heinlein</li>
<li>SM Stirling</li>
<li>JRR Tolkien</li>
<li>Piers Anthony</li>
<li>Women</li>
<li>Julian May</li>
</ul>
<h2>Search Filter</h2>
<ul data-role="listview" data-inset="true" data-filter="true">
<li>Men</li>
<li>Robert Heinlein</li>
<li>SM Stirling</li>
<li>JRR Tolkien</li>
<li>Piers Anthony</li>
<li>Women</li>
<li>Julian May</li>
</ul>
<h2>Count Bubbles</h2>
<ul data-role="listview" data-inset="true" data-filter="true">
<li>
Robert Heinlein
<span class="ui-li-count">32</span>
</li>
<li>
SM Stirling
<span class="ui-li-count">15</span>
</li>
<li>
JRR Tolkien
<span class="ui-li-count">9</span>
</li>
<li>
Piers Anthony
<span class="ui-li-count">42</span>
</li>
<li>
Julian May
<span class="ui-li-count">27</span>
</li>
</ul>
</div>
<div data-role="footer">
<p>© 2012 - jQuery Mobile Boilerplate</p>
</div>
</div>
</body>
</html>