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

Method _syncIndeterminate

src/material/checkbox/checkbox.ts:506–512  ·  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

504 * server-side rendering.
505 */
506 private _syncIndeterminate(value: boolean) {
507 const nativeCheckbox = this._inputElement;
508
509 if (nativeCheckbox) {
510 nativeCheckbox.nativeElement.indeterminate = value;
511 }
512 }
513
514 _onInputClick() {
515 this._handleInputClick();

Callers 2

ngAfterViewInitMethod · 0.95
indeterminateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected