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

Method initProps

src/material/slider/slider-input.ts:305–318  ·  view source on GitHub ↗

@docs-private

()

Source from the content-addressed store, hash-verified

303
304 /** @docs-private */
305 initProps(): void {
306 this._updateWidthInactive();
307
308 // If this or the parent slider is disabled, just make everything disabled.
309 if (this.disabled !== this._slider.disabled) {
310 // The MatSlider setter for disabled will relay this and disable both inputs.
311 this._slider.disabled = true;
312 }
313
314 this.step = this._slider.step;
315 this.min = this._slider.min;
316 this.max = this._slider.max;
317 this._initValue();
318 }
319
320 /** @docs-private */
321 initUI(): void {

Callers 2

_initUINonRangeMethod · 0.80
_initUIRangeMethod · 0.80

Calls 2

_updateWidthInactiveMethod · 0.95
_initValueMethod · 0.95

Tested by

no test coverage detected