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

Method _getInput

src/material/slider/slider.ts:917–925  ·  view source on GitHub ↗

Gets the slider thumb input of the given thumb position.

(thumbPosition: _MatThumb)

Source from the content-addressed store, hash-verified

915
916 /** Gets the slider thumb input of the given thumb position. */
917 _getInput(thumbPosition: _MatThumb): _MatSliderThumb | _MatSliderRangeThumb | undefined {
918 if (thumbPosition === _MatThumb.END && this._input) {
919 return this._input;
920 }
921 if (this._inputs?.length) {
922 return thumbPosition === _MatThumb.START ? this._inputs.first : this._inputs.last;
923 }
924 return;
925 }
926
927 /** Gets the slider thumb HTML input element of the given thumb position. */
928 _getThumb(thumbPosition: _MatThumb): _MatSliderVisualThumb {

Callers 15

disabledMethod · 0.95
_updateMinRangeMethod · 0.95
_updateMinNonRangeMethod · 0.95
_updateMaxRangeMethod · 0.95
_updateMaxNonRangeMethod · 0.95
_updateStepRangeMethod · 0.95
_updateStepNonRangeMethod · 0.95
ngAfterViewInitMethod · 0.95
_onDirChangeRangeMethod · 0.95
_onDirChangeNonRangeMethod · 0.95
_getValueMethod · 0.95
_skipUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected