5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery Mobile Docs - Theming Pages</title>
7 <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
8 <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/>
9 <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
10 <script src="../../../js/jquery.js"></script>
11 <script src="../../../docs/_assets/js/jqm-docs.js"></script>
12 <script src="../../../js/"></script>
17 <div data-role="page" class="type-interior" data-theme="e">
19 <div data-role="header" data-theme="e">
20 <h1>Theming pages</h1>
21 <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
22 <a href="../../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
23 </div><!-- /header -->
25 <div data-role="content">
26 <div class="content-primary">
28 <ul data-role="controlgroup" data-type="horizontal" class="localnav">
29 <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li>
31 <li><a href="theme-a.html" data-role="button" data-transition="fade">A </a></li>
32 <li><a href="theme-b.html" data-role="button" data-transition="fade">B </a></li>
33 <li><a href="theme-c.html" data-role="button" data-transition="fade">C </a></li>
34 <li><a href="theme-d.html" data-role="button" data-transition="fade">D </a></li>
35 <li><a href="theme-e.html" data-role="button" data-transition="fade" class="ui-btn-active">E </a></li>
38 <h2>Theme E Sample Page</h2>
40 <p>This is an example of <code>data-theme="e"</code> applied to the same element as <code>data-role="page"</code>, showing how the theme is inherited by widgets throughout the page.</p>
42 <div data-role="fieldcontain">
43 <label for="name-a">Text Input:</label>
44 <input type="text" name="name" id="name-a" value="" />
47 <div data-role="fieldcontain">
48 <label for="switch-a">Flip switch:</label>
49 <select name="switch-a" id="switch-a" data-role="slider">
50 <option value="off">Off</option>
51 <option value="on">On</option>
55 <div data-role="fieldcontain">
56 <label for="slider-a">Slider:</label>
57 <input type="range" name="slider" id="slider-a" value="0" min="0" max="100" />
60 <div data-role="fieldcontain">
61 <fieldset data-role="controlgroup" data-type="horizontal">
62 <legend>Font styling:</legend>
63 <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" />
64 <label for="checkbox-6a">b</label>
66 <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" />
67 <label for="checkbox-7a"><em>i</em></label>
69 <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" />
70 <label for="checkbox-8a">u</label>
74 <div data-role="fieldcontain">
75 <fieldset data-role="controlgroup">
76 <legend>Choose a pet:</legend>
77 <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" />
78 <label for="radio-choice-1a">Cat</label>
80 <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2" />
81 <label for="radio-choice-2a">Dog</label>
83 <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3" />
84 <label for="radio-choice-3a">Hamster</label>
86 <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4" />
87 <label for="radio-choice-4a">Lizard</label>
91 <div data-role="fieldcontain">
92 <label for="select-choice-a" class="select">Choose shipping method:</label>
93 <select name="select-choice-a" id="select-choice-a">
94 <option value="standard">Standard: 7 day</option>
95 <option value="rush">Rush: 3 days</option>
96 <option value="express">Express: next day</option>
97 <option value="overnight">Overnight</option>
101 <h2>Collapsible Sets</h2>
102 <div data-role="collapsible-set">
103 <div data-role="collapsible" data-collapsed="false">
105 <p>I'm the collapsible content in a set so this feels like an accordion. I'm visible by default because I have the <code>data-collapsed="false"</code> attribute; to collapse me, either click my header or expand another header in my set.</p>
107 <div data-role="collapsible">
109 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p>
112 <div data-role="collapsible">
114 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p>
120 <ul data-role="listview" data-inset="true">
121 <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li>
122 <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li>
123 <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li>
124 <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li>
125 <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li>
128 </div><!--/content-primary -->
130 <div class="content-secondary">
132 <div data-role="collapsible" data-collapsed="true" data-theme="e" data-content-theme="e">
134 <h3>More in this section</h3>
136 <ul data-role="listview" data-theme="e" data-dividertheme="e">
137 <li data-role="list-divider">Pages & Dialogs</li>
138 <li><a href="../../page-anatomy.html">Anatomy of a page</a></li>
139 <li><a href="../../page-template.html" data-ajax="false">Single page template</a></li>
140 <li><a href="../../multipage-template.html" data-ajax="false">Multi-page template</a></li>
141 <li><a href="../../page-titles.html">Page titles</a></li>
142 <li><a href="../../page-links.html">Linking pages</a></li>
143 <li><a href="../../page-transitions.html" data-ajax="false">Page transitions</a></li>
144 <li><a href="../../page-dialogs.html">Dialogs</a></li>
145 <li><a href="../../page-cache.html">Prefetching & caching pages</a></li>
146 <li><a href="../../page-navmodel.html">Ajax, hashes & history</a></li>
147 <li><a href="../../page-dynamic.html">Dynamically Injecting Pages</a></li>
148 <li><a href="../../page-scripting.html">Scripting pages</a></li>
149 <li data-theme="a"><a href="../../pages-themes.html">Theming pages</a></li>
154 </div><!-- /content -->
156 <div data-role="footer" class="footer-docs" data-theme="e">
157 <p>© 2011-12 The jQuery Foundation</p>