Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Onclick Action on Carousel image

$
0
0

Hi Mentors,

 

 

I am trying to call click event on carousel when you click on any image/pic but it doesn't work.

 

Any suggestion?

 

Here is my code

 

var oCarousel = new sap.ui.commons.Carousel({

                                  text : 'Car',

                   click: function() {

                                            alert("test");

                                  }

                        });

 

                        oCarousel.setWidth("100%");

                        oCarousel.setOrientation("horizontal");

                return oCarousel;

    }

 

 

});


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>