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

Method getValue

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

Source from the content-addressed store, hash-verified

464 this.ionKnobMoveEnd.emit({ value: ensureValueInBounds(this.value) });
465 };
466 private getValue(): RangeValue {
467 const value = this.value ?? 0;
468 if (this.dualKnobs) {
469 if (typeof value === 'object') {
470 return value;
471 }
472 return {
473 lower: 0,
474 upper: value,
475 };
476 } else {
477 if (typeof value === 'object') {
478 return value.upper;
479 }
480 return value;
481 }
482 }
483
484 /**
485 * Emits an `ionChange` event.

Callers 2

updateRatioMethod · 0.95
renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected