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

Method _setValue

src/material/slider/slider-input.ts:118–124  ·  view source on GitHub ↗

* Handles programmatic value setting. This has been split out to * allow the range thumb to override it and add additional necessary logic.

(value: string)

Source from the content-addressed store, hash-verified

116 * allow the range thumb to override it and add additional necessary logic.
117 */
118 protected _setValue(value: string) {
119 this._hostElement.value = value;
120 this._updateThumbUIByValue();
121 this._slider._onValueChange(this);
122 this._cdr.detectChanges();
123 this._slider._cdr.markForCheck();
124 }
125
126 /** Event emitted when the `value` is changed. */
127 @Output() readonly valueChange: EventEmitter<number> = new EventEmitter<number>();

Callers 2

valueMethod · 0.95
_setValueMethod · 0.45

Calls 3

_updateThumbUIByValueMethod · 0.95
_onValueChangeMethod · 0.80
markForCheckMethod · 0.80

Tested by

no test coverage detected