Last active
December 21, 2015 01:09
-
-
Save rotty3000/6225415 to your computer and use it in GitHub Desktop.
AUI tabview example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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