JavaScript
A5.ViewBoxsetElementDisabled Method
Syntax
A5.ViewBox.setElementDisabled(value,disabled)
A5.ViewBox.setElementDisabled(id,disabled)
Arguments
- valueany
The value of the item(s) in the view box to disable.
- idstring
The ID of the item in the view box to disable. Must be prefixed with a "#", for example "#button1".
- disabledboolean
Whether or not the element(s) are disabled.
Description
Disable or enable individual elements in the view box. This works on both selectable (such as a list item) and non-selectable (such as a button) elements.
Example
// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl // assume vbObj is a pointer to an instance of the A5.ViewBox class vbObj.setElementDisabled('a',true); // set the element(s) with the value of "a" disabled