-
3 Jan 2011 2:39 AM #1
[OPEN] Tabpanel, Toolbar
[OPEN] Tabpanel, Toolbar
Hi,
I have created a TabPanel promoted as component.
The designer does not allow me to put a ToolBar on it.
I tried on a single tabpanel with the same result.
Any suggestion? Is this a bug or ...
-
3 Jan 2011 5:58 AM #2Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 5
This is an omission that was by-design at first, but I'll move this to the bugs forum and open it up to have it corrected. Right now the TabPanel will only accept Panel children, so if you need a toolbar that's around no matter what Tab you're on, as a workaround you can put the TabPanel into a Panel with a layout of "fit" and add the Toolbar to the Panel.
Thanks.
-
3 Jan 2011 6:21 AM #3
Ok thanks,
Until the bug is solved, I will just finalise the items of my tabpanel then add manually the TBAR in the ui.js with a note in the developer guide of my app
-
3 Jan 2011 7:11 AM #4Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 5
Or, you can add the toolbar into the TabPanel in its .js file within initComponent. This is the preferred way to add *anything* that cannot currently be done within the interface, because the .js file won't get overwritten on subsequent exports.
Code:MyTabPanel = Ext.extend(MyTabPanelUi, { initComponent: function() { this.tbar = [{ text: 'My Button' }]; MyTabPanel.superclass.initComponent.call(this); } });
-
3 Jan 2011 11:46 PM #5
-
16 May 2011 9:01 AM #6
Or, You can add a Toolbar in a Ext.Panel, and transform it in a Ext.TabPanel and voila
Success! Looks like we've fixed this one. According to our records the fix was applied for
DSGNR-223
in
Designer 1.2.3.
Similar Threads
-
toolbar menu open on hover
By mohaaron in forum Ext 3.x: Help & DiscussionReplies: 25Last Post: 6 Jul 2011, 3:23 PM -
[OPEN-805] ItemSelector not rendered tabpanel when tabpanel.deferredRender=false
By gholyoak in forum Ext 3.x: BugsReplies: 3Last Post: 23 Jul 2010, 6:19 AM -
[CLOSED]Toolbar - unable to open menu in SplitButton (FF3.6), even in Toolbar example
By jb4 in forum Ext 3.x: BugsReplies: 6Last Post: 23 Mar 2010, 4:09 PM -
Menu of toolbar open to up?
By andre_guitar7 in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 31 Mar 2009, 6:41 AM -
open toolbar menubutton upwards?
By clembm in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 24 May 2008, 12:08 AM



Reply With Quote