diff --git a/src/node-menunav/docs/component.json b/src/node-menunav/docs/component.json
index bc2e162da3d..e3d34d3fcec 100644
--- a/src/node-menunav/docs/component.json
+++ b/src/node-menunav/docs/component.json
@@ -14,6 +14,60 @@
"description": "Creating left navigation using the MenuNav Node Plugin.",
"modules" : ["node-menunav", "cssgrids"],
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-2",
+ "displayName": "Basic Top Nav",
+ "description": "Creating top navigation using the MenuNav Node Plugin",
+ "modules" : ["node-menunav", "cssgrids"],
+
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-3",
+ "displayName": "Menu Button Top Nav",
+ "description": "Creating menu button navigation using the MenuNav Node Plugin",
+ "modules" : ["node-menunav", "cssgrids"],
+
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-4",
+ "displayName": "Split Button Top Nav",
+ "description": "Creating split button navigation using the MenuNav Node Plugin",
+ "modules" : ["node-menunav", "cssgrids"],
+
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-5",
+ "displayName": "Left Nav with Submenus with Shadows",
+ "description": "Adding shadows to submenus of a left nav using the MenuNav Node Plugin",
+ "modules" : ["node-menunav", "cssgrids"],
+
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-6",
+ "displayName": "Left Nav With Submenus With Rounded Corners",
+ "description": "Adding rounded corners to submenus of a left nav using the MenuNav Node Plugin",
+ "modules" : ["node-menunav", "cssgrids"],
+
+ "hideTableOfContents": true
+ },
+
+ {
+ "name" : "node-menunav-7",
+ "displayName": "Skinning Menus Created Using the MenuNav Node Plugin",
+ "description": "Skining a menu built using the MenuNav Node Plugin to look like the menus on Flickr",
+ "modules" : ["node-menunav", "cssgrids"],
+
"hideTableOfContents": true
}
],
@@ -22,6 +76,36 @@
"menunav-leftnav-example": {
"displayName": "MenuNav: Basic Left Nav Example",
"layout" : "menunav-example"
+ },
+
+ "node-menunav-2-example": {
+ "displayName": "MenuNav: Basic Top Nav Example",
+ "layout" : "menunav-example"
+ },
+
+ "node-menunav-3-example": {
+ "displayName": "MenuNav: Menu Button Top Nav Example",
+ "layout" : "menunav-example"
+ },
+
+ "node-menunav-4-example": {
+ "displayName": "MenuNav: Split Button Top Nav Example",
+ "layout" : "menunav-example"
+ },
+
+ "node-menunav-5-example": {
+ "displayName": "MenuNav: Left Nav with Submenus with Shadows Example",
+ "layout" : "menunav-example"
+ },
+
+ "node-menunav-6-example": {
+ "displayName": "MenuNav: Left Nav With Submenus With Rounded Corners Example",
+ "layout" : "menunav-example"
+ },
+
+ "node-menunav-7-example": {
+ "displayName": "MenuNav: Skinning Menus Created Using the MenuNav Node Plugin Example",
+ "layout" : "menunav-example"
}
}
}
diff --git a/src/node-menunav/docs/index.mustache b/src/node-menunav/docs/index.mustache
index 29971d0ae68..34837234cf7 100644
--- a/src/node-menunav/docs/index.mustache
+++ b/src/node-menunav/docs/index.mustache
@@ -1,47 +1,47 @@
- The MenuNav Node Plugin makes it easy to transform existing list-based
- markup into traditional, drop down navigational menus that are both
- accessible and easy to customize, and only require a small set of
+ The MenuNav Node Plugin makes it easy to transform existing list-based
+ markup into traditional, drop down navigational menus that are both
+ accessible and easy to customize, and only require a small set of
dependencies. The MenuNav Node Plugin features:
-
+
- Progressive Enhancement
-
- The MenuNav Node Plugin is designed to support
+ The MenuNav Node Plugin is designed to support
Progressive Enhancement,
- making it easy to transform simple, semantic markup into dynamic
+ making it easy to transform simple, semantic markup into dynamic
drop-down menus with just a few lines of JavaScript.
- Small footprint
-
- The MenuNav Node Plugin has a small footprint of ~5 KB (GZIP'd) and
+ The MenuNav Node Plugin has a small footprint of ~5 KB (GZIP'd) and
requires a minimal set of dependencies.
-
+
- Accessibility & Usability Minded
-
- The MenuNav Node Plugin was built with both accessibility and usability
- in mind. The MenuNav Node Plugin implements established mouse and
- keyboard interaction patterns to deliver a user experience that is both
- familiar and easy to use. To that foundation the MenuNav Node plugin
- adds support for screen readers through the use of the
+ The MenuNav Node Plugin was built with both accessibility and usability
+ in mind. The MenuNav Node Plugin implements established mouse and
+ keyboard interaction patterns to deliver a user experience that is both
+ familiar and easy to use. To that foundation the MenuNav Node plugin
+ adds support for screen readers through the use of the
WAI-ARIA Roles and States.
-
+
- Easy to style and configure
-
- The MenuNav Node Plugin is easy to configure. The visual presentation
- of menus is controlled completely via CSS. A handful of
+ The MenuNav Node Plugin is easy to configure. The visual presentation
+ of menus is controlled completely via CSS. A handful of
straightforward [[#configuration attributes]] can be used to make
common modifications to a menu's behavior.
-
+
- `
-
- No menuing system would be complete without an
+ No menuing system would be complete without an
`
@@ -51,8 +51,8 @@
{{>getting-started}}
-Next, apply the `yui3-skin-sam` class name to an element that is a
-parent of the element in which the menu lives. You can usually accomplish this
+Next, apply the `yui3-skin-sam` class name to an element that is a
+parent of the element in which the menu lives. You can usually accomplish this
simply by putting the class on the `
` tag:
@@ -64,7 +64,7 @@ simply by putting the class on the `` tag:
To create a menu using the MenuNav Node Plugin, start by including the required markup. The markup
-for menus created using the MenuNav Node Plugin follows the same pattern established for Widgets,
+for menus created using the MenuNav Node Plugin follows the same pattern established for Widgets,
with each menu's content box containing one or more `
` elements:
@@ -79,10 +79,10 @@ with each menu's content box containing one or more `
```
-
+
-Menu items also follow the Widget markup pattern, with the root node defined using an
-`
` element:
+Menu items also follow the Widget markup pattern, with the root node defined using an
+`` element:
MenuItem Markup Example
@@ -94,10 +94,10 @@ Menu items also follow the Widget markup pattern, with the root node defined usi
```
-
+
-Submenus are defined by wrapping the the menu markup in an <li>
element. Each
-submenu must have have a label. The label should preceed the menu markup, and the label's
+Submenus are defined by wrapping the the menu markup in an <li>
element. Each
+submenu must have have a label. The label should preceed the menu markup, and the label's
href
attribute should be set to the point to the id of its corresponding submenu.
@@ -117,7 +117,7 @@ submenu must have have a label. The label should preceed the menu markup, and t
```
-Following the patterns illustrated above, the markup for a menu created using the MenuNav Node
+Following the patterns illustrated above, the markup for a menu created using the MenuNav Node
Plugin comes together as follows:
@@ -147,9 +147,9 @@ Plugin comes together as follows:
-
-
-
+
+
+
@@ -162,19 +162,19 @@ the plug
me
```
-// Call the "use" method, passing in "node-menunav". This will load the
-// script and CSS for the MenuNav Node Plugin and all of the required
+// Call the "use" method, passing in "node-menunav". This will load the
+// script and CSS for the MenuNav Node Plugin and all of the required
// dependencies.
YUI().use("node-menunav", function(Y) {
- // Use the "contentready" event to initialize the menu when the subtree of
- // element representing the root menu (