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

Method connectedCallback

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

Source from the content-addressed store, hash-verified

412 }
413
414 connectedCallback() {
415 this.updateRatio();
416 this.debounceChanged();
417 this.disabledChanged();
418 this.activeBarStartChanged();
419
420 /**
421 * If we have not yet rendered
422 * ion-range, then rangeSlider is not defined.
423 * But if we are moving ion-range via appendChild,
424 * then rangeSlider will be defined.
425 */
426 if (this.didLoad) {
427 this.setupGesture();
428 this.setupActivatedObserver();
429 }
430
431 const ionContent = findClosestIonContent(this.el);
432 this.contentEl = ionContent?.querySelector('.ion-content-scroll-host') ?? ionContent;
433 }
434
435 disconnectedCallback() {
436 if (this.gesture) {

Callers

nothing calls this directly

Calls 5

updateRatioMethod · 0.95
debounceChangedMethod · 0.95
disabledChangedMethod · 0.95
activeBarStartChangedMethod · 0.95
findClosestIonContentFunction · 0.90

Tested by

no test coverage detected