<div data-dojo-type="dijit.layout.TabContainer">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Legend'">
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Search results'">
</div>
</div>
|
<div data-dojo-type="dijit.layout.TabContainer">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Legend'">
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Search results'">
</div>
</div>
|
Hey guys, im trying to figure out how to switch between the tabs from a button (rather than pressing on the tab itself) is there a way to do this?
edit - answer: give the div of the tabcontainer and the tab itself an id tag
<id="tabconID" div data-dojo-type="dijit.layout.TabContainer">
for tab itself: <div id="tab1Name" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Search results'"></div></div>
then in your javascript section do
//declare tab
var tc = registry.byId("tabconID");
//use to select tab
tc.selectChild(registry.byId("tab1Name"));