Caridy Patino![]()
Featured Item
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.
To use the Accordion Node Plugin, simply pass a reference to the plugin to a
Node instance's plug method.
It also has several configuration properties that can be
set via an object literal that is passed as a second argument to a Node
instance's plug method.
Injecting node accordion plugin into a YUI 3 Node element.
YUI({
modules: {
'gallery-node-accordion': {
fullpath: 'http://yui.yahooapis.com/gallery-2010.02.17-20/build/gallery-node-accordion/gallery-node-accordion-min.js',
requires: ['node-base','node-style','plugin','node-event-delegate','classnamemanager'],
optional: ['anim'],
supersedes: []
}
}
}).use('gallery-node-accordion', function(Y) {
Y.one("#myaccordion").plug(Y.Plugin.NodeAccordion);
});No forum posts for this module.
© 2010 YUI Library - Site Credits