-
25 Oct 2010 6:29 AM #1
Same toggleGroup, 2 toolbars
Same toggleGroup, 2 toolbars
Hi people,
I want to know if I can have a toggleGroup that works for 2 different toolbars.
I want to have the main buttons at the tbar and navigation, help, etc. at the bbar.
Thank you!!
-
25 Oct 2010 7:33 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Yes, toggleGroups are globally registered in the Ext.ButtonToggleMgr, so it doesn't matter where your buttons reside.
-
25 Oct 2010 10:08 AM #3
I see that the object has this 3 functions:
Apparently I have to pass an button object as a parameter to the function register, right? I am working with OpenLayers controls and wonder if I should register each of the controls that I created.Code:Ext.ButtonToggleMgr.getPressed(group); Ext.ButtonToggleMgr.register(btn); Ext.ButtonToggleMgr.unregister(btn);
If you could provide me an example I would be so grateful!
-
25 Oct 2010 10:23 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
You don't need to use ButtonToggleMgr directly. A button calls ButtonToggleMgr.register automatically if you specify a toggleGroup.
-
25 Oct 2010 10:48 AM #5
Similar Threads
-
Which is the right event to toggleGroup
By Flocke25 in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 1 Nov 2010, 8:57 AM -
When to call GroupingView.toggleGroup()
By v.madhu in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 6 Jan 2010, 3:42 AM -
toggleGroup is not working
By columbus30 in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 30 May 2009, 6:35 AM -
toggleGroup in toolbar MenuButtons
By maraqa84 in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Dec 2008, 5:06 AM



Reply With Quote