W3cubDocs

/Angular

SetDisabledStateOption

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.

API

type SetDisabledStateOption = 'whenDisabledForLegacyCode' | 'always'

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/SetDisabledStateOption