frankkohlhepp/fancy-settings — Issue #23: support for enabling/disabling elements
Author: toyg
Created: 2012-02-13 09:10:34+00:00
State: open

In some cases you might want to disable UI elements depending on some variable. For example, you might have a checkbox option, and then radio buttons for a sub-option that only makes sense if the checkbox is ticked.
In those cases, one would need to enable or disable UI elements dynamically.

I tried using settings.manifest.myoption.element.setAttribute('disabled',true), but that only seems to work once (i.e. once disabled, I cannot re-enable it). Also, different bundle types have different properties (element vs elementS etc), so it's not a consistent approach. I have to say I don't really know mootools, so there might be an easy way of doing this that I'm not aware of.

Thanks for the great lib anyway!
Cheers