View Full Version : basicdialog tabs
jbowman
6 Nov 2006, 6:41 AM
Does the basicdialogs tabbing system have the same functionality of the tabmanger? In other words, is there a way to use the tabmanager functions to add tabs specifying urls as the source for the content?
jack.slocum
6 Nov 2006, 4:24 PM
Yep. dlg.getTabs() returns a standard TabPanel element.
jbowman
6 Nov 2006, 5:15 PM
I did some tweaking... I wanted to create a dialog I could reuse over and over, and didn't set any tab bodies in the markup. Basically I have
<div id=dlg style="visibility:hidden;">
<div id="dlghd" class="ydlg-hd"></div>
<div id="dlgbd" class="ydlg-bd"></div>
<div id="dlgft" class="ydlg-ft"></div>
</div>
So getTabs, even with autotabs set to true wasn't working. So I changed getTabs() to this
getTabs : function(){
if ( !this.tabs ) {
this.tabs = new YAHOO.ext.TabPanel(this.body.dom, this.tabPosition == 'bottom');
}
return this.tabs;
},
jack.slocum
6 Nov 2006, 5:23 PM
Great idea. Added. By the way, your JS has come a long way!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.