Browse Source

new example of a split button list

master
T. Meissner 12 years ago
parent
commit
9b1828163c
1 changed files with 47 additions and 0 deletions
  1. +47
    -0
      ch03_20.html

+ 47
- 0
ch03_20.html View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first jQuery Mobile code</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<!-- activate back buttons with the addBackBtn option of the page plugin-->
<script type="text/javascript">
$(document).bind("mobileinit", function() {
$.mobile.page.prototype.options.addBackBtn = true;
});
</script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" id="home" data-add-back-btn="false">
<div data-role="header">
<h1>nested lists</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-split-icon="help">
<li>
<a href="details/bill"><h1>Bill Gates</h1></a>
<a href="edit/bill"></a>
</li>
<li>
<a href="details/steve">Steve Jobs</a>
<a href="edit/steve"></a>
</li>
<li>
<a href="details/mark"><p>Mark Zuckerberg</p></a>
<a href="edit/mark"></a>
</li>
<li>
<a href="details/larry">Larry Page</a>
<a href="edit/larry"></a>
</li>
</ul>
</div>
<div data-role="footer">
<h1>www.goodcleanfun.de</h1>
</div>
</div>
</body>
</html>

Loading…
Cancel
Save