[Users] GeoExt.Action + Ext.menu

Tim Schaub tschaub at opengeo.org
Fri Jul 24 21:04:43 CEST 2009


Hey-

Alexandre Dube wrote:
> Hey,
> 
>   I really like the example of the new toolbar that uses GeoExt.Action.  
> I had something in mind though and wondered if anyone already achieved 
> it : can you have a toolbar with GeoExt.Action objects AND different 
> GeoExt.Action inside a Ext.menu AND have the same 'group' and 
> 'toggleGroup' all work together ?  I know that's a bit silly, since the 
> menu has a checkItem objects...  The menu or toolbar would need to share 
> the same 'type' of element for this to work I guess.
> 

I probably don't understand your question properly, but you can set both 
toggleGroup and group in an action (necessary for the action to be used 
in both a button and a menu check item).  Are you saying you want to use 
different values for group and toggleGroup?

Note that there are issues with Ext.SplitButton and toggleGroup (though 
curiously, I haven't seen similar trouble with Ext.Toolbar.SplitButton).

Tim

>   Any idea ?
> 


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.


More information about the Users mailing list