View Full Version : How to find tab body id
bbarnhart
13 Jul 2007, 5:01 AM
How do I find the id of a tab body? The id is tab-body3, but it used to be tab-body2. I'm new to this. Thanks
Brian
evant
13 Jul 2007, 5:17 AM
http://extjs.com/deploy/ext/docs/output/Ext.TabPanelItem.html#bodyEl
Assuming you know the tab panel item.
bbarnhart
13 Jul 2007, 5:29 AM
Below is the code. I'm still confused as to how to use the bodyEl.
Is it :
tabs_field.bodyEl
FieldTabs.bodyEl
tabs.bodyEl
All of the above return undefined. I'm sure there is just one little thing I'm not getting. Thanks
Brian
var FieldTabs = {
init : function(){
var tabs = new Ext.TabPanel('tabs_field', {tabPosition:'bottom'});
tabs.addTab('layout_fields', "Layout Fields");
tabs.addTab('edit_fields', "Edit Fields");
tabs.activate('layout_fields');
}
}
Ext.EventManager.onDocumentReady(FieldTabs.init, FieldTabs, true);
evant
13 Jul 2007, 5:31 AM
tabs.bodyEl
Should definitely return something.
Do you want to explain what you're trying to do? There might be a better way.
bbarnhart
13 Jul 2007, 5:47 AM
Got it. I needed to remove the var in front of the tab variable. Works like a champ!
Super thanks
Brian
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.