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">
|
2015-09-30 07:49:13 +00:00
|
|
|
<style>
|
|
|
|
.ui-menu { width: 250px; margin-bottom: 2em; }
|
|
|
|
.menu4 { height: 225px; overflow-y: auto; overflow-x: hidden; }
|
|
|
|
.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; }
|
|
|
|
</style>
|
|
|
|
<script src="../../../external/requirejs/require.js"></script>
|
|
|
|
<script src="../../../demos/bootstrap.js">
|
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({
|
2014-10-25 16:18:17 +00:00
|
|
|
menus: ".menuElement",
|
2012-05-18 14:40:44 +00:00
|
|
|
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,
|
2014-11-03 17:08:06 +00:00
|
|
|
icon: "ui-icon-caret-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>
|
|
|
|
</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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Aberdeen</div></li>
|
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li><div>Addyston</div></li>
|
|
|
|
<li><div>Delphi</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-state-disabled"><div>Aberdeen</div></li>
|
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li><div>Addyston</div></li>
|
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2011-02-24 11:05:20 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-state-disabled"><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2011-02-24 11:05:20 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li>
|
|
|
|
<div>Salzburg</div>
|
2011-02-24 14:51:51 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2011-03-17 09:35:18 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2011-03-17 09:35:18 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2011-03-17 09:35:18 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2011-03-17 09:35:18 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-state-disabled"><div>Perch</div></li>
|
2011-02-24 14:51:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-state-disabled"><div>Amesville</div></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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div><span class="ui-icon ui-icon-print"></span>Aberdeen</div>
|
|
|
|
</li>
|
|
|
|
<li class="ui-state-disabled">
|
|
|
|
<div><span class="ui-icon ui-icon-scissors"></span>Ada</div>
|
|
|
|
</li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li>
|
|
|
|
<div><span class="ui-icon ui-icon-wrench"></span>Addyston</div>
|
|
|
|
</li>
|
|
|
|
<li class="ui-state-disabled">
|
|
|
|
<div>Delphi</div>
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li>
|
|
|
|
<div><span class="ui-icon ui-icon-wrench"></span>Saarland</div>
|
|
|
|
</li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>Saarland</div></li>
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
<span class="ui-icon ui-icon-print"></span>Salzburg
|
|
|
|
</div>
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<div><span class="ui-icon ui-icon-wrench"></span>Delphi</div>
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2011-04-20 15:18:15 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div><span class="ui-icon ui-icon-wrench"></span>Ada</div></li>
|
|
|
|
<li><div><span class="ui-icon ui-icon-wrench"></span>Saarland</div></li>
|
|
|
|
<li><div><span class="ui-icon ui-icon-wrench"></span>Salzburg</div></li>
|
2011-04-20 15:18:15 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Perch</div></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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Aberdeen</div></li>
|
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li><div>Addyston</div></li>
|
|
|
|
<li><div>Adelphi</div></li>
|
|
|
|
<li><div>Adena</div></li>
|
|
|
|
<li><div>Adrian</div></li>
|
|
|
|
<li><div>Akron</div></li>
|
|
|
|
<li><div>Albany</div></li>
|
|
|
|
<li><div>Alexandria</div></li>
|
|
|
|
<li><div>Alger</div></li>
|
|
|
|
<li><div>Alledonia</div></li>
|
|
|
|
<li><div>Alliance</div></li>
|
|
|
|
<li><div>Alpha</div></li>
|
|
|
|
<li><div>Alvada</div></li>
|
|
|
|
<li><div>Alvordton</div></li>
|
|
|
|
<li><div>Amanda</div></li>
|
|
|
|
<li><div>Amelia</div></li>
|
|
|
|
<li><div>Amesville</div></li>
|
|
|
|
<li><div>Aberdeen</div></li>
|
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li><div>Addyston</div></li>
|
|
|
|
<li><div>Adelphi</div></li>
|
|
|
|
<li><div>Adena</div></li>
|
|
|
|
<li><div>Adrian</div></li>
|
|
|
|
<li><div>Akron</div></li>
|
|
|
|
<li><div>Albany</div></li>
|
|
|
|
<li><div>Alexandria</div></li>
|
|
|
|
<li><div>Alger</div></li>
|
|
|
|
<li><div>Alledonia</div></li>
|
|
|
|
<li><div>Alliance</div></li>
|
|
|
|
<li><div>Alpha</div></li>
|
|
|
|
<li><div>Alvada</div></li>
|
|
|
|
<li><div>Alvordton</div></li>
|
|
|
|
<li><div>Amanda</div></li>
|
|
|
|
<li><div>Amelia</div></li>
|
|
|
|
<li><div>Amesville</div></li>
|
2010-03-20 20:51:53 +00:00
|
|
|
</ul>
|
|
|
|
|
2012-05-18 13:15:00 +00:00
|
|
|
<h2>Menu with custom markup</h2>
|
2014-10-25 16:18:17 +00:00
|
|
|
<div id="menu5" class="menuElement">
|
|
|
|
<blockquote><div>Aberdeen</div></blockquote>
|
|
|
|
<blockquote><div>Ada</div></blockquote>
|
|
|
|
<blockquote class="ui-state-disabled"><div>Adamsville</div></blockquote>
|
|
|
|
<blockquote><div>Addyston</div></blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<div>Delphi</div>
|
|
|
|
<blockquote class="menuElement">
|
|
|
|
<blockquote><div>Ada</div></blockquote>
|
|
|
|
<blockquote><div>Saarland</div></blockquote>
|
|
|
|
<blockquote><div>Salzburg</div></blockquote>
|
|
|
|
</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</blockquote>
|
2014-10-25 16:18:17 +00:00
|
|
|
<blockquote><div>Saarland</div></blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<div>Salzburg</div>
|
|
|
|
<blockquote class="menuElement">
|
|
|
|
<blockquote>
|
|
|
|
<div>Delphi</div>
|
|
|
|
<blockquote class="menuElement">
|
|
|
|
<blockquote><div>Ada</div></blockquote>
|
|
|
|
<blockquote><div>Saarland</div></blockquote>
|
|
|
|
<blockquote><div>Salzburg</div></blockquote>
|
|
|
|
</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</blockquote>
|
2014-10-25 16:18:17 +00:00
|
|
|
<blockquote>
|
|
|
|
<div>Delphi</div>
|
|
|
|
<blockquote class="menuElement">
|
|
|
|
<blockquote><div>Ada</div></blockquote>
|
|
|
|
<blockquote><div>Saarland</div></blockquote>
|
|
|
|
<blockquote><div>Salzburg</div></blockquote>
|
|
|
|
</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</blockquote>
|
2014-10-25 16:18:17 +00:00
|
|
|
<blockquote><div>Perch</div></blockquote>
|
|
|
|
</blockquote>
|
2011-09-14 15:29:36 +00:00
|
|
|
</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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
2012-02-03 22:12:37 +00:00
|
|
|
<div class="address-item ui-state-disabled">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="address-item">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<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>
|
|
|
|
</div>
|
2011-09-14 15:29:36 +00:00
|
|
|
<div class="menuElement">
|
2014-10-25 16:18:17 +00:00
|
|
|
<div>
|
|
|
|
<div>Ada</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>Saarland</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>Salzburg</div>
|
|
|
|
</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">
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-menu-group">
|
|
|
|
<div><strong>Group 1</strong></div>
|
|
|
|
</li>
|
|
|
|
<li><div>Aberdeen</div></li>
|
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Adamsville</div></li>
|
|
|
|
<li><div>Addyston</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li></li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-menu-group">
|
|
|
|
<div><strong>Group 2</strong></div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Saarland</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>---</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li class="ui-menu-group">
|
|
|
|
<div><strong>Group 3</strong></div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div>Salzburg</div>
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li>-</li>
|
|
|
|
<li><div>Saarland</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>—</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Salzburg</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
<li>–</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li>
|
|
|
|
<div>Delphi</div>
|
2012-05-25 04:44:51 +00:00
|
|
|
<ul>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Ada</div></li>
|
|
|
|
<li><div>Saarland</div></li>
|
|
|
|
<li><div>Salzburg</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Perch</div></li>
|
2012-05-25 04:44:51 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-10-25 16:18:17 +00:00
|
|
|
<li><div>Amesville</div></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>
|