MCPcopy Index your code
hub / github.com/angular/components / _updateMax

Method _updateMax

src/material/slider/slider.ts:236–241  ·  view source on GitHub ↗
(max: number)

Source from the content-addressed store, hash-verified

234 private _max: number = 100;
235
236 private _updateMax(max: number): void {
237 const prevMax = this._max;
238 this._max = max;
239 this._isRange ? this._updateMaxRange({old: prevMax, new: max}) : this._updateMaxNonRange(max);
240 this._onMinMaxOrStepChange();
241 }
242
243 private _updateMaxRange(max: {old: number; new: number}): void {
244 const endInput = this._getInput(_MatThumb.END) as _MatSliderRangeThumb;

Callers 1

maxMethod · 0.95

Calls 3

_updateMaxRangeMethod · 0.95
_updateMaxNonRangeMethod · 0.95
_onMinMaxOrStepChangeMethod · 0.95

Tested by

no test coverage detected