jquery-mobile/_listview.html
scottjehl f9f236fb8b Big update:
In starting markup, pages should now be identified with the attribute data-role="page".  This allows us to then add ui-page programatically, hiding all non-active pages, and apply ui-page-active to one page at a time to show it.

mobile.js is updated to find pages by this attribute now, instead of ui-page class.

fixes issue 32
2010-09-18 12:20:35 -04:00

301 lines
No EOL
9.2 KiB
HTML

<?php /*gzip page*/ ob_start("ob_gzhandler"); ?>
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile Framework - Listview Examples</title>
<link rel="stylesheet" type="text/css" href="css/all"/>
<script type="text/javascript" src="js/all"></script>
</head>
<body>
<div data-role="page">
<div class="ui-header">
<h1>Listview Examples</h1>
<a href="index.html" class="ui-back" data-icon="arrow-l">Home</a>
</div>
<div class="ui-content">
<h2 class="ui-bar ui-bar-b">Basic Listview:</h2>
<ul data-role="listview">
<li><a href="index.html">Page A</a></li>
<li><a href="index.html">Page B</a></li>
<li><a href="index.html">Page C</a></li>
</ul>
<h2 class="ui-bar ui-bar-b">Basic Listview from OL element:</h2>
<ol data-role="listview">
<li><a href="index.html">Page A</a></li>
<li><a href="index.html">Page B</a></li>
<li><a href="index.html">Page C</a></li>
</ol>
<h2 class="ui-bar ui-bar-b">Basic inset Listview:</h2>
<ul data-role="listview" data-inset="true">
<li><a href="index.html">Page A</a></li>
<li><a href="index.html">Page B</a></li>
<li><a href="index.html">Page C</a></li>
</ul>
<h2 class="ui-bar ui-bar-b" data-inset="true">Nested Listview:</h2>
<ul data-role="listview">
<li>Page A
<ul>
<li><a href="index.html">Page A 1</a></li>
<li><a href="index.html">Page A 2</a></li>
<li><a href="index.html">Page A 3</a></li>
</ul>
</li>
<li>Page B
<ul>
<li><a href="index.html">Page B 1</a></li>
<li><a href="index.html">Page B 2</a></li>
<li><a href="index.html">Page B 3</a></li>
</ul>
</li>
<li>Page C
<ul>
<li><a href="index.html">Page C 1</a></li>
<li><a href="index.html">Page C 2</a></li>
<li><a href="index.html">Page C 3</a></li>
</ul>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Basic Listview w/ counts:</h2>
<ul data-role="listview">
<li>
<a href="index.html">Page A</a>
<span class="ui-li-count">22</span>
</li>
<li>
<a href="index.html">Page A</a>
<span class="ui-li-count">22</span>
</li>
<li>
<a href="index.html">Page A</a>
<span class="ui-li-count">22</span>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Basic Listview w/ hierarchy:</h2>
<ul data-role="listview">
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Basic Listview w/ grouped aside content:</h2>
<ul data-role="listview">
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<p class="ui-li-aside"><strong>6:24</strong>PM</p>
</li>
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<p class="ui-li-aside"><strong>6:24</strong>PM</p>
</li>
<li>
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<p class="ui-li-aside"><strong>6:24</strong>PM</p>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Same as above with grouping items:</h2>
<ul data-role="listview">
<li>This morning <span class="ui-li-count">3</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>This afternoon <span class="ui-li-count">1</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>Meeting reminder</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>1:15</strong>PM</p>
</li>
<li>This evening <span class="ui-li-count">1</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>Just checking</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>7:46</strong>PM</p>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Same as above with OL numbering:</h2>
<ol data-role="listview">
<li>This morning <span class="ui-li-count">3</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>You've been invited to a meeting at Filament Group in Boston, MA</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>6:24</strong>AM</p>
</li>
<li>This afternoon <span class="ui-li-count">1</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>Meeting reminder</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>1:15</strong>PM</p>
</li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>Meeting reminder</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>1:15</strong>PM</p>
</li>
<li>This evening <span class="ui-li-count">1</span></li>
<li>
<h3><a href="index.html">Todd Parker</a></h3>
<p><strong>Just checking</strong></p>
<p>Hey Scott, if you're available at 10am tomorrow, we've got a meeting with the jQuery team.</p>
<p class="ui-li-aside"><strong>7:46</strong>PM</p>
</li>
</ol>
<h2 class="ui-bar ui-bar-b">Basic Listview w/ thumbnails:</h2>
<ul data-role="listview">
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
</li>
</ul>
<h2 class="ui-bar ui-bar-b">Basic OL Listview w/ split buttons:</h2>
<ol data-role="listview" data-inset="true">
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
</ol>
<h2 class="ui-bar ui-bar-b">Same as above, different theme</h2>
<ol data-role="listview" data-inset="true" data-theme="e" data-split-theme="c" data-count-theme="b">
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
<li>
<img src="images/jb.jpg" alt="jb" />
<h3><a href="index.html">Page A</a></h3>
<p>Quick description about this item here</p>
<span class="ui-li-count">22</span>
<a href="index.html">browse details</a>
</li>
</ol>
</div>
</div>
</body>
</html>