J. Shirley![]()
This plugin allows the Twitter Bootstrap collapsible elements to function.
Any trigger with a data-toggle=collapse can fire off and collapse an element, as specified in the data-target attribute. There can also be groupings, to create an accordion control.
<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
simple collapsible
</button>
<div id="demo" class="collapse in"> … </div>
<script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.08.22-20-00'
}).use('gallery-bootstrap-collapse', function(Y) {
Y.one('#myCollapsible').plug( Y.Bootstrap.Collapse, {
duration: 1
});
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info