J. Shirley![]()
This is a modification to the core Bootstrap tabs that adapts them to adhere to a native YUI TabView control. The markup changes are quite small, but all styling is kept so it still looks like a nice Bootstrap tabview.
The Bootstrap Tabview allows a quick and easy tabview setup. The tabview bar is separate from the body, with the <A> tag anchor pointing to a div and toggling visibility.
<div data-toggle="tab">
<ul class="nav nav-tabs" data-toggle="tab">
<li><a href="#home">Home</a></li>
<li><a href="#profile">Profile</a></li>
<li><a href="#messages">Messages</a></li>
<li><a href="#settings">Settings</a></li>
</ul>
</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-tabview', function(Y) {
var tabview = new Y.Bootstrap.Tabview({ node: '#myTab' });
tabview.render();
tabview.selectChild(2); // Select the second tab
});
© 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