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

Method _getInput

src/material/slider/slider.ts:914–922  ·  view source on GitHub ↗

Gets the slider thumb input of the given thumb position.

(thumbPosition: _MatThumb)

Source from the content-addressed store, hash-verified

912
913 /** Gets the slider thumb input of the given thumb position. */
914 _getInput(thumbPosition: _MatThumb): _MatSliderThumb | _MatSliderRangeThumb | undefined {
915 if (thumbPosition === _MatThumb.END && this._input) {
916 return this._input;
917 }
918 if (this._inputs?.length) {
919 return thumbPosition === _MatThumb.START ? this._inputs.first : this._inputs.last;
920 }
921 return;
922 }
923
924 /** Gets the slider thumb HTML input element of the given thumb position. */
925 _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