diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-01-04 16:40:44 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-01-04 16:42:16 +0100 |
commit | 85348eeebed3521b5eea78d8930ee086c08cd62e (patch) | |
tree | 0a3a928b48a0fa74d08eab8951dbc4beaea9008b /demos/menu | |
parent | f0007ec74526979837c93be13bf181b3cf57c2ce (diff) | |
download | jquery-ui-85348eeebed3521b5eea78d8930ee086c08cd62e.tar.gz jquery-ui-85348eeebed3521b5eea78d8930ee086c08cd62e.zip |
Menubar/Popup: Remove both to streamline the 1.9 release. Will revert this delete on the menubar branch, while development on master can continue without them.
Diffstat (limited to 'demos/menu')
-rw-r--r-- | demos/menu/contextmenu.html | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/demos/menu/contextmenu.html b/demos/menu/contextmenu.html deleted file mode 100644 index 33e07f7ec..000000000 --- a/demos/menu/contextmenu.html +++ /dev/null @@ -1,65 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8" /> - <title>jQuery UI Menu - Contextmenu demo</title> - <link href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> - <script src="../../jquery-1.7.1.js"></script> - <script src="../../ui/jquery.ui.core.js"></script> - <script src="../../ui/jquery.ui.position.js"></script> - <script src="../../ui/jquery.ui.widget.js"></script> - <script src="../../ui/jquery.ui.menu.js"></script> - <script src="../../ui/jquery.ui.button.js"></script> - <script src="../../ui/jquery.ui.popup.js"></script> - <link href="../demos.css" rel="stylesheet" /> - <script> - $(function() { - var btn = $(".demo button").button({ - icons: { - primary: "ui-icon-home", - secondary: "ui-icon-triangle-1-s" - } - }); - $("#cities").menu({ - select: function(event, ui) { - $("#log").append("<div>Selected " + ui.item.text() + "</div>"); - }, - trigger : btn}); - }); - </script> - <style> - .ui-menu { width: 200px; position: absolute; } - </style> -</head> -<body> - -<div class="demo"> - - <button>Select a city</button> - <ul id="cities"> - <li><a href="#Amsterdam">Amsterdam</a></li> - <li><a href="#Anaheim">Anaheim</a></li> - <li><a href="#Cologne">Cologne</a></li> - <li><a href="#Frankfurt">Frankfurt</a></li> - <li><a href="#Magdeburg">Magdeburg</a></li> - <li><a href="#Munich">Munich</a></li> - <li><a href="#Utrecht">Utrecht</a></li> - <li><a href="#Zurich">Zurich</a></li> - </ul> - - <div id="log"></div> - -</div><!-- End demo --> - -<div class="demo-description"> - -<p>A simple contextmenu: Click the button, or tab to it and hit space to open the menu. Use the mouse or cursor keys to select an item, click it or hit enter to select it.</p> - -<p>The keyboard handling is part of the menu. Using the input option to menu is configured to add the key event handlers to the button, as that button gets focused when clicked.</p> - -</div><!-- End demo-description --> - - - -</body> -</html> |