I need to refer to the attribute of a button that describes whether it is enabled or disabled. "Enablement state" sounds awkward and clunky.
|
|
I take it you mean a word for whether or not a button is "grayed out", not for whether it has turned something "on" or "off". If "state" or "mode" are too general or in use, then I suggest availability, which could have values "enabled" and "disabled". |
|||
|
|
|
It's not whether the button is enabled vs disabled, only that it is disabled or not. Hence the parameter that controls this behavior, in various software and html/css, is simply "disabled", which has a value true or false. It's also more handy in programming logic to treat a bi-state parameter in this way. Instead of all such parameters having all sorts of values you have to keep track of and compare as strings in conditionals. When you name and use a parameter as representing the truth or falsehood of only one of the states, then you can always test more quickly for true or false. Less typos and most programming languages provide shortcut conditionals, e.g. If(button.disabled) instead of if(button.state==disabled). |
|||||||||
|
|
I think the answer lies in what are you disabling and enabling. The graphic of a toggle button is a verb in and of itself. If it has a label such as "water", you press the button in and as long as the button is in its inward state (or locked down), it's understood that water will continue to flow. As soon as you press the button again to return it to its outward state (or up), it's understood that the water will stop flowing. We already know the button is enabling or disabling something. What is it enabling and disabling? |
||||
|
