The TabView module contains classes to create navigable tabbed views of content.
Example
require('UWA/Controls/TabView', function (TabView) {
var tabView = new TabView({
className: 'nav',
tabs: [
new TabView.Tab({name: 'tab1', text: 'Tab 1'})
new TabView.Tab({name: 'tab2', text: 'Tab 2'})
],
events: {
onSelectTab: function (newTab, oldTab, event) {
newTab.setContent('some content');
}
}
}).inject(widget.body);
});