2010-03-20 20:51:53 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2012-04-23 17:07:03 +00:00
|
|
|
<meta charset="utf-8">
|
2010-03-20 20:51:53 +00:00
|
|
|
<title>Menu Visual Test: Default</title>
|
2013-12-02 18:36:12 +00:00
|
|
|
<link rel="stylesheet" href="../../../themes/base/all.css">
|
2014-03-03 21:52:54 +00:00
|
|
|
<script src="../../../jquery.js"></script>
|
2013-12-02 18:36:12 +00:00
|
|
|
<script src="../../../ui/core.js"></script>
|
|
|
|
<script src="../../../ui/widget.js"></script>
|
|
|
|
<script src="../../../ui/position.js"></script>
|
|
|
|
<script src="../../../ui/menu.js"></script>
|
2012-05-18 14:40:44 +00:00
|
|
|
<script>
|
2010-03-20 20:51:53 +00:00
|
|
|
$(function() {
|
2012-05-18 14:40:44 +00:00
|
|
|
function logger( event, ui ) {
|
|
|
|
$( "<p>" ).text( "Selected: " + ui.item.text() ).appendTo( "#log" );
|
|
|
|
}
|
2011-09-12 22:24:43 +00:00
|
|
|
|
2013-12-03 11:50:25 +00:00
|
|
|
$( "#menu1, #menu3, .menu4" ).menu({
|
|
|
|
select: logger
|
|
|
|
});
|
|
|
|
|
|
|
|
$( "#menu2" ).menu({
|
|
|
|
position: {
|
|
|
|
my: "left top",
|
|
|
|
at: "left+10 top-20"
|
|
|
|
},
|
2012-05-18 14:40:44 +00:00
|
|
|
select: logger
|
2012-05-18 13:18:19 +00:00
|
|
|
});
|
2012-04-23 17:07:03 +00:00
|
|
|
|
2012-05-18 14:40:44 +00:00
|
|
|
$( "#menu5" ).menu({
|
|
|
|
menus: "div",
|
|
|
|
select: logger
|
2012-05-18 13:18:19 +00:00
|
|
|
});
|
2010-03-20 20:51:53 +00:00
|
|
|
|
2012-05-18 14:40:44 +00:00
|
|
|
$( "#menu6" ).menu({
|
|
|
|
menus: ".menuElement",
|
2012-07-10 05:12:39 +00:00
|
|
|
select: logger,
|
|
|
|
icon: "ui-icon-carat-1-s"
|
2010-06-18 08:57:20 +00:00
|
|
|
});
|
2013-09-25 04:46:59 +00:00
|
|
|
|
|
|
|
$( "#menu7" ).menu({
|
|
|
|
items: "> :not('.ui-menu-group')",
|
|
|
|
select: logger
|
|
|
|
});
|
2010-03-20 20:51:53 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
body { font-size:62.5%; }
|
2011-03-11 16:23:15 +00:00
|
|
|
.ui-menu { width: 200px; margin-bottom: 2em; }
|
2013-12-03 11:50:25 +00:00
|
|
|
.menu2-container { width: 220px; }
|
2011-10-19 02:02:45 +00:00
|
|
|
.menu4 { height: 200px; overflow-y: auto; overflow-x: hidden; }
|
2011-09-14 15:29:36 +00:00
|
|
|
.address-item { border-bottom: 1px solid #999; }
|
|
|
|
.address-header { display: block; margin-bottom: .2em; font-weight: bold; }
|
|
|
|
.address-content { display: block; margin-bottom: .2em; padding-left: 10px; }
|
2010-03-20 20:51:53 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2011-09-12 22:24:43 +00:00
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Default inline menu</h2>
|
2010-04-30 11:04:09 +00:00
|
|
|
<ul id="menu1">
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Aberdeen</li>
|
|
|
|
<li>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li>Addyston</li>
|
|
|
|
<li>Delphi</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2010-03-20 20:51:53 +00:00
|
|
|
</ul>
|
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Inline with disabled items and submenus</h2>
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul id="menu2">
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-state-disabled">Aberdeen</li>
|
|
|
|
<li>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li>Addyston</li>
|
|
|
|
<li>Delphi
|
2011-02-24 11:05:20 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-state-disabled">Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2011-02-24 11:05:20 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg
|
2011-02-24 14:51:51 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Delphi
|
2011-03-17 09:35:18 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2011-03-17 09:35:18 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Delphi
|
2011-03-17 09:35:18 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2011-03-17 09:35:18 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-12-03 11:50:25 +00:00
|
|
|
<li class="ui-state-disabled">Perch</li>
|
2011-02-24 14:51:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-state-disabled">Amesville</li>
|
2011-02-24 11:05:20 +00:00
|
|
|
</ul>
|
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Menu with icons</h2>
|
2011-02-24 11:05:20 +00:00
|
|
|
<ul id="menu3">
|
2013-09-23 02:03:46 +00:00
|
|
|
<li><span class="ui-icon ui-icon-print"></span>Aberdeen</li>
|
|
|
|
<li class="ui-state-disabled"><span class="ui-icon ui-icon-scissors"></span>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li><span class="ui-icon ui-icon-wrench"></span>Addyston</li>
|
|
|
|
<li class="ui-state-disabled">Delphi
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li><span class="ui-icon ui-icon-wrench"></span>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Saarland</li>
|
2011-04-20 15:18:15 +00:00
|
|
|
<li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="ui-icon ui-icon-print"></span>Salzburg
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="ui-icon ui-icon-wrench"></span>Delphi
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Delphi
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li><span class="ui-icon ui-icon-wrench"></span>Ada</li>
|
|
|
|
<li><span class="ui-icon ui-icon-wrench"></span>Saarland</li>
|
|
|
|
<li><span class="ui-icon ui-icon-wrench"></span>Salzburg</li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Perch</li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Long menu with scroll overflow, to test menu's scroll-on-keypress behaviour</h2>
|
2011-09-12 22:24:43 +00:00
|
|
|
<ul class="menu4">
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Aberdeen</li>
|
|
|
|
<li>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li>Addyston</li>
|
|
|
|
<li>Adelphi</li>
|
|
|
|
<li>Adena</li>
|
|
|
|
<li>Adrian</li>
|
|
|
|
<li>Akron</li>
|
|
|
|
<li>Albany</li>
|
|
|
|
<li>Alexandria</li>
|
|
|
|
<li>Alger</li>
|
|
|
|
<li>Alledonia</li>
|
|
|
|
<li>Alliance</li>
|
|
|
|
<li>Alpha</li>
|
|
|
|
<li>Alvada</li>
|
|
|
|
<li>Alvordton</li>
|
|
|
|
<li>Amanda</li>
|
|
|
|
<li>Amelia</li>
|
|
|
|
<li>Amesville</li>
|
|
|
|
<li>Aberdeen</li>
|
|
|
|
<li>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li>Addyston</li>
|
|
|
|
<li>Adelphi</li>
|
|
|
|
<li>Adena</li>
|
|
|
|
<li>Adrian</li>
|
|
|
|
<li>Akron</li>
|
|
|
|
<li>Albany</li>
|
|
|
|
<li>Alexandria</li>
|
|
|
|
<li>Alger</li>
|
|
|
|
<li>Alledonia</li>
|
|
|
|
<li>Alliance</li>
|
|
|
|
<li>Alpha</li>
|
|
|
|
<li>Alvada</li>
|
|
|
|
<li>Alvordton</li>
|
|
|
|
<li>Amanda</li>
|
|
|
|
<li>Amelia</li>
|
|
|
|
<li>Amesville</li>
|
2010-03-20 20:51:53 +00:00
|
|
|
</ul>
|
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Menu with custom markup</h2>
|
2011-09-14 15:29:36 +00:00
|
|
|
<div id="menu5">
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Aberdeen</blockquote>
|
|
|
|
<blockquote>Ada</blockquote>
|
|
|
|
<blockquote class="ui-state-disabled">Adamsville</blockquote>
|
|
|
|
<blockquote>Addyston</blockquote>
|
|
|
|
<blockquote>Delphi
|
2011-09-14 15:29:36 +00:00
|
|
|
<div>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Ada</blockquote>
|
|
|
|
<blockquote>Saarland</blockquote>
|
|
|
|
<blockquote>Salzburg</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
</blockquote>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Saarland</blockquote>
|
|
|
|
<blockquote>Salzburg
|
2011-09-14 15:29:36 +00:00
|
|
|
<div>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Delphi
|
2011-09-14 15:29:36 +00:00
|
|
|
<div>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Ada</blockquote>
|
|
|
|
<blockquote>Saarland</blockquote>
|
|
|
|
<blockquote>Salzburg</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
</blockquote>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Delphi
|
2011-09-14 15:29:36 +00:00
|
|
|
<div>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Ada</blockquote>
|
|
|
|
<blockquote>Saarland</blockquote>
|
|
|
|
<blockquote>Salzburg</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
</blockquote>
|
2013-09-23 02:03:46 +00:00
|
|
|
<blockquote>Perch</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
</blockquote>
|
|
|
|
</div>
|
|
|
|
|
2012-07-10 05:12:39 +00:00
|
|
|
<h2>Menu with custom markup, multi-line items and a custom submenu icon</h2>
|
2011-09-14 15:29:36 +00:00
|
|
|
<div class="menuElement" id="menu6">
|
|
|
|
<div class="address-item">
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="address-header">John Doe</span>
|
|
|
|
<span class="address-content">78 West Main St Apt 3A</span>
|
|
|
|
<span class="address-content">Bloomsburg, PA 12345</span>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="address-header">Jane Doe</span>
|
|
|
|
<span class="address-content">78 West Main St Apt 3A</span>
|
|
|
|
<span class="address-content">Bloomsburg, PA 12345</span>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
2012-02-03 22:12:37 +00:00
|
|
|
<div class="address-item ui-state-disabled">
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="address-header">James Doe</span>
|
|
|
|
<span class="address-content">78 West Main St Apt 3A</span>
|
|
|
|
<span class="address-content">Bloomsburg, PA 12345</span>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="address-header">Jenny Doe</span>
|
|
|
|
<span class="address-content">78 West Main St Apt 3A</span>
|
|
|
|
<span class="address-content">Bloomsburg, PA 12345</span>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2013-09-23 02:03:46 +00:00
|
|
|
<span class="address-header">John Doe</span>
|
|
|
|
<span class="address-content">78 West Main St Apt 3A</span>
|
|
|
|
<span class="address-content">Bloomsburg, PA 12345</span>
|
2011-09-14 15:29:36 +00:00
|
|
|
<div class="menuElement">
|
2013-09-23 02:03:46 +00:00
|
|
|
<div>Ada</div>
|
|
|
|
<div>Saarland</div>
|
|
|
|
<div>Salzburg</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-09-25 04:46:59 +00:00
|
|
|
<h2>Inline with dividers and group labels</h2>
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul id="menu7">
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-menu-group"><strong>Group 1</strong></li>
|
|
|
|
<li>Aberdeen</li>
|
|
|
|
<li>Ada</li>
|
|
|
|
<li>Adamsville</li>
|
|
|
|
<li>Addyston</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li></li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-menu-group"><strong>Group 2</strong></li>
|
|
|
|
<li>Delphi
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Saarland</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>---</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li class="ui-menu-group"><strong>Group 3</strong></li>
|
|
|
|
<li>Salzburg
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Delphi
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li> - </li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Saarland</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>—</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Salzburg</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>–</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Delphi
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Ada</li>
|
|
|
|
<li>Saarland</li>
|
|
|
|
<li>Salzburg</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Perch</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2013-09-23 02:03:46 +00:00
|
|
|
<li>Amesville</li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
|
2012-05-18 14:40:44 +00:00
|
|
|
<div style="position: absolute; top: 1em; right: 1em;">
|
2010-03-20 20:51:53 +00:00
|
|
|
Log:
|
2012-05-18 14:40:44 +00:00
|
|
|
<div id="log" style="height: 400px; width: 300px; overflow: auto; border: 1px solid #000;"></div>
|
2010-03-20 20:51:53 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
2013-01-17 06:28:41 +00:00
|
|
|
</html>
|