MCPcopy Create free account
hub / github.com/angular/components / setDisabledState

Method setDisabledState

src/material/list/selection-list.ts:253–257  ·  view source on GitHub ↗

Implemented as a part of ControlValueAccessor.

(isDisabled: boolean)

Source from the content-addressed store, hash-verified

251
252 /** Implemented as a part of ControlValueAccessor. */
253 setDisabledState(isDisabled: boolean): void {
254 this.disabled = isDisabled;
255 this._changeDetectorRef.markForCheck();
256 this._markOptionsForCheck();
257 }
258
259 /**
260 * Whether the *entire* selection list is disabled. When true, each list item is also disabled

Callers

nothing calls this directly

Calls 2

_markOptionsForCheckMethod · 0.95
markForCheckMethod · 0.80

Tested by

no test coverage detected