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

Method _updateThumbUI

src/material/slider/slider.ts:723–731  ·  view source on GitHub ↗

Updates the translateX of the given thumb.

(source: _MatSliderThumb)

Source from the content-addressed store, hash-verified

721
722 /** Updates the translateX of the given thumb. */
723 _updateThumbUI(source: _MatSliderThumb) {
724 if (this._skipUpdate()) {
725 return;
726 }
727 const thumb = this._getThumb(
728 source.thumbPosition === _MatThumb.END ? _MatThumb.END : _MatThumb.START,
729 )!;
730 thumb._hostElement.style.transform = `translateX(${source.translateX}px)`;
731 }
732
733 // Value indicator text update conditions
734 //

Callers 1

_onTranslateXChangeMethod · 0.95

Calls 2

_skipUpdateMethod · 0.95
_getThumbMethod · 0.95

Tested by

no test coverage detected