root / trunk / web / dojo / dijit / layout / TabContainer.js @ 12
History | View | Annotate | Download (1.28 KB)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
if(!dojo._hasResource["dijit.layout.TabContainer"]){ |
9 |
dojo._hasResource["dijit.layout.TabContainer"]=true; |
10 |
dojo.provide("dijit.layout.TabContainer");
|
11 |
dojo.require("dijit.layout._TabContainerBase");
|
12 |
dojo.require("dijit.layout.TabController");
|
13 |
dojo.require("dijit.layout.ScrollingTabController");
|
14 |
dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_1){ |
15 |
var _2=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_3=dojo.getObject(this.controllerWidget); |
16 |
return new _3({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":_2,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_1); |
17 |
},postMixInProperties:function(){ |
18 |
this.inherited(arguments); |
19 |
if(!this.controllerWidget){ |
20 |
this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController"; |
21 |
} |
22 |
}}); |
23 |
} |