Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons-carousel
-
Carousel component. A carousel can be used to display several items in the same space. The component supports displaying content both horizontally and vertically. The user can scroll through the items by dragging and it can also be controller programmatically.
Click here to see the original article
-
I want to use postchange. But I can’t understand how to use event.
-
@koheiokazaki Like this:
https://codepen.io/munsterlander/pen/MbvWwa
https://onsen.io/v2/docs/js/ons-carousel.html
As far as why you would use postchange, if you wanted to load data for the next page or maybe check if the user completed an action on the previous change, you can throw your code in there.