MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / activeBarStartChanged

Method activeBarStartChanged

core/src/components/range/range.tsx:215–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213 @Prop({ mutable: true }) activeBarStart?: number;
214 @Watch('activeBarStart')
215 protected activeBarStartChanged() {
216 const { activeBarStart } = this;
217 if (activeBarStart !== undefined) {
218 if (activeBarStart > this.max) {
219 printIonWarning(
220 `[ion-range] - The value of activeBarStart (${activeBarStart}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,
221 this.el
222 );
223 this.activeBarStart = this.max;
224 } else if (activeBarStart < this.min) {
225 printIonWarning(
226 `[ion-range] - The value of activeBarStart (${activeBarStart}) is less than the min (${this.min}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,
227 this.el
228 );
229 this.activeBarStart = this.min;
230 }
231 }
232 }
233
234 /**
235 * If `true`, the user cannot interact with the range.

Callers 1

connectedCallbackMethod · 0.95

Calls 1

printIonWarningFunction · 0.90

Tested by

no test coverage detected