mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-12 18:08:17 +03:00
Squashed 'jquery-ui/' content from commit 77ff328
git-subtree-dir: jquery-ui git-subtree-split: 77ff328cbe8a662f52178020d202dc1bfb560fd8
This commit is contained in:
commit
d21ea7816e
629 changed files with 341074 additions and 0 deletions
42
demos/menu/categories.html
Normal file
42
demos/menu/categories.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Menu - Categories</title>
|
||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../ui/core.js"></script>
|
||||
<script src="../../ui/widget.js"></script>
|
||||
<script src="../../ui/position.js"></script>
|
||||
<script src="../../ui/menu.js"></script>
|
||||
<link rel="stylesheet" href="../demos.css">
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#menu" ).menu({
|
||||
items: "> :not(.ui-widget-header)"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.ui-menu { width: 200px; }
|
||||
.ui-widget-header { padding: 0.2em; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul id="menu">
|
||||
<li class="ui-widget-header">Category 1</li>
|
||||
<li>Option 1</li>
|
||||
<li>Option 2</li>
|
||||
<li>Option 3</li>
|
||||
<li class="ui-widget-header">Category 2</li>
|
||||
<li>Option 4</li>
|
||||
<li>Option 5</li>
|
||||
<li>Option 6</li>
|
||||
</ul>
|
||||
|
||||
<div class="demo-description">
|
||||
<p>By using the <code>items</code> option, you can configure which elements are converted into selectable menu items. Here this technique is used to create category headers.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue