[fusion-users] Toolbar's Button Item disabled by default

Rachot Moragraan moo at ci.garden-grove.ca.us
Wed Mar 21 11:38:15 EDT 2012


There are certain events that trigger a widget to become enabled. 

If the XML doesn't do the trick, you might be able to change your Widget's enabled condition. Or maybe calling disable on the widget after everything has initialized like this?:

mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, function () {
  Fusion.getWidgetById(id).disable();
});

----- Original Message -----
From: "Michael Adair" <madair at dmsolutions.ca>
To: fusion-users at lists.osgeo.org
Sent: Wednesday, March 21, 2012 8:09:11 AM
Subject: Re: [fusion-users] Toolbar's Button Item disabled by default

Widgets can have a <Disabled>true|false</Disabled> element in their 
definition in the AppDef.xml which might do the trick.

Mike

On 21/03/2012 10:42 AM, Rachot Moragraan wrote:
> I believe this the buttons are specified in the ApplicationDefinition XML. Anyone please correct me if i am wrong.
>
> But try to use an authoring software or just a text editor to remove these buttons.
>
> ----- Original Message -----
> From: "firework"<alex_taillon at msn.com>
> To: fusion-users at lists.osgeo.org
> Sent: Tuesday, March 20, 2012 7:37:43 PM
> Subject: [fusion-users] Toolbar's Button Item disabled by default
>
> Hi,
>
> This one should be simple but I cannot figure out how to make a button in
> the toolbar by disabled by default.
>
> Even if I force it with this.disable() in the initializeWidget function of
> the button's widget js file, it seems to be that it gets enabled back.
>
> Any suggestions,
>
> Thank you
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/Toolbar-s-Button-Item-disabled-by-default-tp4639181p4639181.html
> Sent from the Fusion Users mailing list archive at Nabble.com.
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users


More information about the fusion-users mailing list