Search code examples
dojomobile-websitedojox.mobile

Handling the event when a dojox.mobile.Carousel widget is swapped


The dojo mobile documentation gives you a way to listen for ant event when a user "Selects" a carousel item: http://dojotoolkit.org/reference-guide/1.8/dojox/mobile/Carousel.html#handling-the-event-when-a-carousel-item-is-selected

But i need to do an action when it's transitioned. is there a way to handle that?

Also is there somewhere i can find all "handleable events" for a widget?


Solution

  • After learning more about Dojo, I realized that i didn't approach this correctly.

    Create a new module that inherits from carousel. then all you need to do is override the handleViewChanged method (make sure to call this.inherited) then do stuff right in there.