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

Method _syncIndeterminate

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

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

Callers 2

ngAfterViewInitMethod · 0.95
indeterminateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected