MCPcopy
hub / github.com/ionic-team/ionic-framework / getButtons

Method getButtons

core/src/components/segment/segment.tsx:267–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 }
266
267 private getButtons(): HTMLIonSegmentButtonElement[] {
268 return Array.from(this.el.querySelectorAll('ion-segment-button'));
269 }
270
271 private get checked() {
272 return this.getButtons().find((button) => button.value === this.value);

Callers 12

valueChangedMethod · 0.95
disabledChangedMethod · 0.95
checkedMethod · 0.95
setActivatedMethod · 0.95
activateMethod · 0.95
setCheckedClassesMethod · 0.95
getSegmentViewMethod · 0.95
updateSegmentViewMethod · 0.95
setNextIndexMethod · 0.95
SegmentClass · 0.95

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected