Skip to Content
Oct 13, 2020 at 07:59 AM

How do i extend or overwrite standard methods in sap ui5? sap.m.carousel



There is a standard method in sap.m.carousel setActivePage() in sapui5 carousel control. How do i overwrite this method. Because this setActivePage method fires an event called pageChanged. Also when they press arrow button , same event gets triggered.

1) setActivePage ----> Trigggers --> pageChanged event

2) Press ArrowButton in carousel --- > Triggers ---- > pageChanged event

Both 1 and 2 triggers same event. I need to identify which one has triggered the event. Is there possibility to overwrite setActivePage method which fires pageChanged event?