JavaScript
A5.ListBoxsetDisabled Method
Syntax
A5.ListBox.setDisabled(disabled)
Arguments
- disabledboolean
Whether or not the list is disabled.
Description
Disable or enable the list.
Example
// To get a pointer to the A5.ListBox class see {dialog.object}.getControl // assume lObj is a pointer to an instance of the A5.ListBox class // assume oldDate is a date - and the list should be disabled if less then on minute has passed var date = new Date(); if(date.now()-oldDate.now() > (1000*60)){ lObj.setDisabled(false); } else{ lObj.setDisabled(true); }
See Also