JavaScript
A5.ButtonListsetDisabled Method
Syntax
A5.ButtonList.setDisabled(value,disabled)
A5.ButtonList.setDisabled(disabled)
Arguments
- valueany
The value of the button to set the disabled state of the button list.
- disabledboolean
The disabled state of the specified button in the button list, or the entire button list if no value is passed in.
Description
Set a button or the entire button list disabled.
Discussion
If a "value" is passed in then the button with the corresponding value in the button list will have its disabled state set. Otherwise the disabled state of the entire button list will be set.
Example
// assume "colorsBtnList" is an A5.ButtonList colorsBtnList.setDisabled('blue',true); // disable "blue" colorsBtnList.setDisabled(false); // enable the entire list - "blue" will still be disabled