Skip to content

Instantly share code, notes, and snippets.

@maplpro
Created September 23, 2010 18:01
Show Gist options
  • Save maplpro/594055 to your computer and use it in GitHub Desktop.
Save maplpro/594055 to your computer and use it in GitHub Desktop.
goog.ui.TabBar
goog.require( 'goog.ui.TabBar' );
goog.provide( 'infoportal.ui' );
infoportal.ui.init = function () {
tb = new goog.ui.TabBar();
goog.array.forEach(
['Enterprise', 'Farms', 'Web Application', 'Site Collections', 'Sites'],
function (name) {
tb.addChild( new goog.ui.Tab( name ), true );
}
);
tb.setSelectedTabIndex(0);
return tb;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment