• Genel Bakış
@angular/forms

SetDisabledStateOption

Tür Takma Adı
kararlı

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'
    
    
Detaylara atla