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

Method emitValueChange

core/src/components/segment/segment.tsx:262–265  ·  view source on GitHub ↗

* Emits an `ionChange` event. * * This API should be called for user committed changes. * This API should not be used for external value changes.

()

Source from the content-addressed store, hash-verified

260 * This API should not be used for external value changes.
261 */
262 private emitValueChange() {
263 const { value } = this;
264 this.ionChange.emit({ value });
265 }
266
267 private getButtons(): HTMLIonSegmentButtonElement[] {
268 return Array.from(this.el.querySelectorAll('ion-segment-button'));

Callers 4

onEndMethod · 0.95
SegmentClass · 0.95
onKeyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected