Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Last active December 21, 2015 01:09
Show Gist options
  • Save rotty3000/6225415 to your computer and use it in GitHub Desktop.
Save rotty3000/6225415 to your computer and use it in GitHub Desktop.
AUI tabview example
AUI().use(
'aui-tabs',
function(A) {
// adding a content box node
A.one('#content').append("<div class='tabs-example'></div>");
var tabView = new A.TabView(
{
contentNode: '#content .tabs-example',
items:[
{label:'tab one', content:'tab one content'},
{label:'tab two', content:'tab two content'}
]
}
);
tabView.render();
}
);
AUI().use(
'aui-tabview',
function(A) {
// adding a content box node
A.one('#content').append("<div class='tabs-example'></div>");
var tabView = new A.TabView(
{
contentBox: '#content .tabs-example',
children:[
{label:'tab one', content:'tab one content'},
{label:'tab two', content:'tab two content'}
]
}
);
tabView.render();
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment