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

Method _syncIndeterminate

src/material/checkbox/checkbox.ts:514–520  ·  view source on GitHub ↗

* Syncs the indeterminate value with the checkbox DOM node. * * We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a * property is supported on an element boils down to `if (propName in element)`. Domino's * HTMLInputElement doesn't have an `indetermin

(value: boolean)

Source from the content-addressed store, hash-verified

512 * server-side rendering.
513 */
514 private _syncIndeterminate(value: boolean) {
515 const nativeCheckbox = this._inputElement;
516
517 if (nativeCheckbox) {
518 nativeCheckbox.nativeElement.indeterminate = value;
519 }
520 }
521
522 _onInputClick() {
523 this._handleInputClick();

Callers 2

ngAfterViewInitMethod · 0.95
indeterminateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected