[Users] GeoExt action (only allow a one of two actions at a time)

Christian Mayer Christian.Mayer at isb-ag.de
Tue Feb 11 09:30:54 CET 2014


Hi Kyle,

take a look at http://geoext.github.io/geoext2/examples/action/mappanel_with_actions.js there is an Example of the usage of toggleGroup like Bart suggested.

Best regards
Chris

Von: users-bounces at geoext.org [mailto:users-bounces at geoext.org] Im Auftrag von Bart van den Eijnden
Gesendet: Montag, 10. Februar 2014 17:58
An: Purdon
Cc: Users at geoext.org Users
Betreff: Re: [Users] GeoExt action (only allow a one of two actions at a time)

Give them the same toggleGroup property.

Best regards,
Bart

--
Bart van den Eijnden
Front-end Developer | Boundless
@boundlessgeo

On 10 Feb 2014, at 17:38, Purdon <kylepurdon at gmail.com<mailto:kylepurdon at gmail.com>> wrote:


Given the following actions: http://pastebin.com/GqSwcrmX

How would I only allow one of them to be active at a time? This is more of a "whats the best way to do this" question. The only solution I could think of is to configure the Ext.button.Button to deactivate the other button on it's click event. Is this the best practice for this?

Kyle W. Purdon
Research Assistant | Center for Remote Sensing of Ice Sheets (CReSIS)
https://www.cresis.ku.edu/~kpurdon/
Graduate Student | University of Kansas Geography (GIS)
http://www.geog.ku.edu/
_______________________________________________
Users mailing list
Users at geoext.org<mailto:Users at geoext.org>
http://www.geoext.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20140211/e03ff4ec/attachment.htm 


More information about the Users mailing list