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 without tags
-
The HTML in the page is being load from an external source so there is no control over its structure.
Currently there is:
<div class="carousel"> <div>....</div> <div>....</div> <div>....</div> </div>
Is there a way to turn it into a carousel or use the same code that powers
ons-carousel
?
-
@Luke-Ward you can use ons.createElement() to create the
<ons-carousel>
and then append it to the DOM but you need to take care of the data manually.