forked from jquery/jquery-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: demos/autocomplete/categories.html demos/autocomplete/combobox.html demos/autocomplete/custom-data.html demos/autocomplete/default.html demos/autocomplete/folding.html demos/autocomplete/multiple-remote.html demos/autocomplete/multiple.html demos/autocomplete/remote-jsonp.html demos/autocomplete/remote-with-cache.html demos/autocomplete/remote.html demos/autocomplete/xml.html demos/button/splitbutton.html demos/index.html tests/visual/menu/nested.html themes/base/jquery.ui.autocomplete.css ui/jquery.ui.autocomplete.js
- Loading branch information
Showing
40 changed files
with
848 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>jQuery UI Menu - Contextmenu demo</title> | ||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> | ||
<script type="text/javascript" src="../../jquery-1.4.2.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.menu.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.button.js"></script> | ||
<link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
<script type="text/javascript"> | ||
$(function() { | ||
$(".demo button").button({ | ||
icons: { | ||
primary: "ui-icon-home", | ||
secondary: "ui-icon-triangle-1-s" | ||
} | ||
}).each(function() { | ||
$(this).next().menu({ | ||
select: function(event, ui) { | ||
$(this).hide(); | ||
$("#log").append("<div>Selected " + ui.item.text() + "</div>"); | ||
}, | ||
input: $(this) | ||
}).hide(); | ||
}).click(function(event) { | ||
var menu = $(this).next(); | ||
if (menu.is(":visible")) { | ||
menu.hide(); | ||
return false; | ||
} | ||
menu.menu("deactivate").show().css({top:0, left:0}).position({ | ||
my: "left top", | ||
at: "right top", | ||
of: this | ||
}); | ||
$(document).one("click", function() { | ||
menu.hide(); | ||
}); | ||
return false; | ||
}) | ||
}); | ||
</script> | ||
<style> | ||
.ui-menu { width: 200px; position: absolute; } | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="demo"> | ||
|
||
<button>Select a city</button> | ||
<ul> | ||
<li><a href="#">Amsterdam</a></li> | ||
<li><a href="#">Anaheim</a></li> | ||
<li><a href="#">Cologne</a></li> | ||
<li><a href="#">Frankfurt</a></li> | ||
<li><a href="#">Magdeburg</a></li> | ||
<li><a href="#">Munich</a></li> | ||
<li><a href="#">Utrecht</a></li> | ||
<li><a href="#">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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>jQuery UI Menu - Default demo</title> | ||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" /> | ||
<script type="text/javascript" src="../../jquery-1.4.2.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script> | ||
<script type="text/javascript" src="../../ui/jquery.ui.menu.js"></script> | ||
<link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
<script type="text/javascript"> | ||
$(function() { | ||
$(".demo ul").menu(); | ||
}); | ||
</script> | ||
<style> | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="demo"> | ||
|
||
<ul> | ||
<li><a href="#">Aberdeen</a></li> | ||
<li><a href="#">Ada</a></li> | ||
<li><a href="#">Adamsville</a></li> | ||
<li><a href="#">Addyston</a></li> | ||
<li><a href="#">Adelphi</a></li> | ||
<li><a href="#">Adena</a></li> | ||
<li><a href="#">Adrian</a></li> | ||
<li><a href="#">Akron</a></li> | ||
<li><a href="#">Albany</a></li> | ||
<li><a href="#">Alexandria</a></li> | ||
<li><a href="#">Alger</a></li> | ||
<li><a href="#">Alledonia</a></li> | ||
<li><a href="#">Alliance</a></li> | ||
<li><a href="#">Alpha</a></li> | ||
<li><a href="#">Alvada</a></li> | ||
</ul> | ||
|
||
</div><!-- End demo --> | ||
|
||
<div class="demo-description"> | ||
|
||
<p>A menu with the default configuration. A list is transformed, adding themeing, mouse and keyboard navigation support. Try to tab to the menu and use the cursor keys to navigate.</p> | ||
|
||
</div><!-- End demo-description --> | ||
|
||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>jQuery UI Menu Demos</title> | ||
<link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div class="demos-nav"> | ||
<h4>Examples</h4> | ||
<ul> | ||
<li class="demo-config-on"><a href="default.html">Default functionality</a></li> | ||
<li><a href="contextmenu.html">Contextmenu</a></li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.