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

Method _updateTickMarkUI

src/material/slider/slider.ts:874–885  ·  view source on GitHub ↗

Updates the dots along the slider track.

()

Source from the content-addressed store, hash-verified

872
873 /** Updates the dots along the slider track. */
874 _updateTickMarkUI(): void {
875 if (
876 !this.showTickMarks ||
877 this.step === undefined ||
878 this.min === undefined ||
879 this.max === undefined
880 ) {
881 return;
882 }
883 const step = this.step > 0 ? this.step : 1;
884 this._isRange ? this._updateTickMarkUIRange(step) : this._updateTickMarkUINonRange(step);
885 }
886
887 private _updateTickMarkUINonRange(step: number): void {
888 const value = this._getValue();

Callers 6

showTickMarksMethod · 0.95
constructorMethod · 0.95
ngAfterViewInitMethod · 0.95
_onValueChangeMethod · 0.95
_onMinMaxOrStepChangeMethod · 0.95
_onResizeMethod · 0.95

Calls 2

Tested by

no test coverage detected