isDisabled()
checks whether a form is disabled
isDisabled(name?: string): boolean;
Returns:
true
, if a form is disabled; otherwise, false
.
Example
form.isDisabled(); // -> true/false
Related sample: Form. Is disabled
To check whether a form control is disabled, pass either the name of the control or its id (if the name attribute is not defined in the config of the control) as a parameter to the isDisabled() method:
form.isDisabled("combo"); // -> true/false
Change log:
added in v6.4