2 jQuery Mobile Boilerplate
8 <title> jQuery Mobile Boilerplate - Buttons</title>
10 <meta charset="utf-8">
11 <meta name="viewport" content="width=device-width, initial-scale=1">
13 <!-- jQuery Mobile CSS bits -->
14 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
16 <!-- if you have a custom theme, add it here -->
17 <link rel="stylesheet" href="/themes/jQuery-Mobile-Boilerplate.css" />
20 <link rel="stylesheet" href="/css/custom.css" />
22 <!-- Javascript includes -->
23 <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
24 <script src="/js/mobileinit.js"></script>
25 <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
26 <script src="/js/application.js"></script>
29 <div data-role="page">
31 <div data-role="header">
32 <a href="../index.html" data-icon="home">Home</a>
36 <div data-role="content">
41 <h2>Simple Button</h2>
43 <a href="index.html" data-role="button">Link button</a>
47 <p><b>Left arrow</b> - data-icon="arrow-l"</p>
48 <a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
49 <p><b>Right arrow</b> - data-icon="arrow-r"</p>
50 <a href="index.html" data-role="button" data-icon="arrow-r">My button</a>
51 <p><b>Up arrow</b> - data-icon="arrow-u"</p>
52 <a href="index.html" data-role="button" data-icon="arrow-u">My button</a>
53 <p><b>Down arrow</b> - data-icon="arrow-d"</p>
54 <a href="index.html" data-role="button" data-icon="arrow-d">My button</a>
55 <p><b>Delete</b> - data-icon="delete"</p>
56 <a href="index.html" data-role="button" data-icon="delete">My button</a>
57 <p><b>Plus</b> - data-icon="plus"</p>
58 <a href="index.html" data-role="button" data-icon="plus">My button</a>
59 <p><b>Minus</b> - data-icon="minus"</p>
60 <a href="index.html" data-role="button" data-icon="minus">My button</a>
61 <p><b>Check</b> - data-icon="check"</p>
62 <a href="index.html" data-role="button" data-icon="check">My button</a>
63 <p><b>Gear</b> - data-icon="gear"</p>
64 <a href="index.html" data-role="button" data-icon="gear">My button</a>
65 <p><b>Refresh</b> - data-icon="refresh"</p>
66 <a href="index.html" data-role="button" data-icon="refresh">My button</a>
67 <p><b>Forward</b> - data-icon="forward"</p>
68 <a href="index.html" data-role="button" data-icon="forward">My button</a>
69 <p><b>Back</b> - data-icon="back"</p>
70 <a href="index.html" data-role="button" data-icon="back">My button</a>
71 <p><b>Grid</b> - data-icon="grid"</p>
72 <a href="index.html" data-role="button" data-icon="grid">My button</a>
73 <p><b>Star</b> - data-icon="star"</p>
74 <a href="index.html" data-role="button" data-icon="star">My button</a>
75 <p><b>Alert</b> - data-icon="alert"</p>
76 <a href="index.html" data-role="button" data-icon="alert">My button</a>
77 <p><b>Info</b> - data-icon="info"</p>
78 <a href="index.html" data-role="button" data-icon="info">My button</a>
79 <p><b>Home</b> - data-icon="home"</p>
80 <a href="index.html" data-role="button" data-icon="home">My button</a>
81 <p><b>Search</b> - data-icon="search"</p>
82 <a href="index.html" data-role="button" data-icon="search">My button</a>
84 <h2>Icon positioning</h2>
87 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="right">Delete</a>
90 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="top">Delete</a>
93 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="bottom">Delete</a>
95 <p>Icon-only button (no text):</p>
96 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Delete</a>
98 <h2>Inline buttons</h2>
100 <a href="index.html" data-role="button" data-inline="true">Cancel</a>
101 <a href="index.html" data-role="button" data-inline="true" data-theme="b">Save</a>
103 <h2>Grouped buttons</h2>
105 <div data-role="controlgroup">
106 <a href="index.html" data-role="button">One</a>
107 <a href="index.html" data-role="button">Two</a>
108 <a href="index.html" data-role="button">Three</a>
111 <div data-role="controlgroup" data-type="horizontal">
112 <a href="index.html" data-role="button">One</a>
113 <a href="index.html" data-role="button">Two</a>
114 <a href="index.html" data-role="button">Three</a>
117 <div data-role="controlgroup" data-type="horizontal">
118 <a href="index.html" data-role="button" data-icon="home">One</a>
119 <a href="index.html" data-role="button" data-icon="gear">Two</a>
120 <a href="index.html" data-role="button" data-icon="refresh">Three</a>
123 <div data-role="controlgroup" data-type="horizontal">
124 <a href="index.html" data-role="button" data-icon="minus" data-iconpos="notext">One</a>
125 <a href="index.html" data-role="button" data-icon="plus" data-iconpos="notext">Two</a>
126 <a href="index.html" data-role="button" data-icon="delete" data-iconpos="notext">Three</a>
136 <div data-role="footer" data-theme="c">
137 <p>© 2012 - jQuery Mobile Boilerplate</p>