[OpenLayers-Users] Enable/Disable state for Toolbar buttons?

Martin Davis mtnclimb at gmail.com
Thu Feb 13 09:00:05 PST 2014


Thanks, Andreas.  We definitely do want to keep disabled tools visible, to
avoid "UI churn" and to indicate that there is a function available, but in
some different state.

I'll look into the setDisabled method idea.

M


On Thu, Feb 13, 2014 at 2:36 AM, Andreas Hocevar
<ahocevar at boundlessgeo.com>wrote:

> Personally I would remove disabled tools from the panel. If you prefer to
> keep disabled tools visible, I'd just add a setDisabled method to
> OpenLayers.Control, which modifies the displayClass. Then you can use CSS
> to customize the appearance of disabled buttons.
>
> Andreas.
>
>
> On Wed, Feb 12, 2014 at 6:46 PM, Martin Davis <mtnclimb at gmail.com> wrote:
>
>> We're wanting to have a Disabled state for some Buttons on a Toolbar, in
>> order to indicate to the user that some tools are not currently available.
>>
>> It appears that this is not supported by the current OL2 code?  There was
>> a thread about this waaay back in 2007:
>>
>> http://osdir.com/ml/openlayers-users-gis/2007-11/msg00373.html
>>
>> Did anything ever come of this?  Does anyone have any suggestions or code
>> that might provide this functionality?
>>
>> Otherwise, we may just roll up our sleeves and try and add this to a
>> extension to the Toolbar (and possibly Controls).
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140213/10ee57ed/attachment.html>


More information about the Users mailing list