MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getIndicator

Method getIndicator

core/src/components/segment/segment.tsx:312–315  ·  view source on GitHub ↗
(button: HTMLIonSegmentButtonElement)

Source from the content-addressed store, hash-verified

310 }
311
312 private getIndicator(button: HTMLIonSegmentButtonElement): HTMLDivElement | null {
313 const root = button.shadowRoot || button;
314 return root.querySelector('.segment-button-indicator');
315 }
316
317 private checkButton(previous: HTMLIonSegmentButtonElement, current: HTMLIonSegmentButtonElement) {
318 const previousIndicator = this.getIndicator(previous);

Callers 1

checkButtonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected