W3cubDocs

/Angular

SetDisabledStateOption

type-alias

The type for CALL_SET_DISABLED_STATE. If always, then ControlValueAccessor will always call setDisabledState when attached, which is the most correct behavior. Otherwise, it will only be called when disabled, which is the legacy behavior for compatibility.

type SetDisabledStateOption = 'whenDisabledForLegacyCode' | 'always';

See also

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/forms/SetDisabledStateOption