This file contains hidden or 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
| /** | |
| * <p>The Accordion Node Plugin makes it easy to transform existing | |
| * markup into an accordion element with expandable and collapsable elements, | |
| * elements are easy to customize, and only require a small set of dependencies.</p> | |
| * | |
| * | |
| * <p>To use the Accordion Node Plugin, simply pass a reference to the plugin to a | |
| * Node instance's <code>plug</code> method.</p> | |
| * | |
| * <p> |
This file contains hidden or 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
| Y.namespace('Plugin').NodeAccordion = Y.Base.create("NodeAccordion", Y.Plugin.Base, [], { | |
| // Prototype Properties for NodeAccordion | |
| /** | |
| * @property _root | |
| * @description Node instance representing the root node in the accordion. | |
| * @default null | |
| * @protected | |
| * @type Node |
This file contains hidden or 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
| <div class="yui-accordion"> | |
| <div class="yui-accordion-item> | |
| <h3 class="yui-accordion-item-trigger">item 1</h3> | |
| <div class="yui-bd yui-accordion-item-bd">contenet</div> | |
| </div> | |
| </div> |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head><title>Test Page</title></head> | |
| <body class="yui-skin-sam"> | |
| <!-- Bootstrap Script //--> | |
| <script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script> | |
| <!-- Initialization process //--> | |
| <script type="text/javascript"> | |
| YUI_config = { |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head><title>Test Page</title></head> | |
| <body class="yui-skin-sam"> | |
| <!-- Bootstrap Script //--> | |
| <script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script> | |
| <!-- Initialization process //--> | |
| <script type="text/javascript"> | |
| YUI_config = { |
NewerOlder