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

Method onEnd

core/src/components/segment/segment.tsx:239–254  ·  view source on GitHub ↗
(detail: GestureDetail)

Source from the content-addressed store, hash-verified

237 }
238
239 onEnd(detail: GestureDetail) {
240 this.setActivated(false);
241
242 this.setNextIndex(detail, true);
243
244 detail.event.stopImmediatePropagation();
245
246 const value = this.value;
247 if (value !== undefined) {
248 if (this.valueBeforeGesture !== value) {
249 this.emitValueChange();
250 this.updateSegmentView();
251 }
252 }
253 this.valueBeforeGesture = undefined;
254 }
255
256 /**
257 * Emits an `ionChange` event.

Callers 1

componentDidLoadMethod · 0.95

Calls 4

setActivatedMethod · 0.95
setNextIndexMethod · 0.95
emitValueChangeMethod · 0.95
updateSegmentViewMethod · 0.95

Tested by

no test coverage detected