Page 1 of 1

add images to carousel javascript

Posted: Tue Jul 12, 2016 8:14 pm
by William Bradee

I have a rest call that returns a list of items with image URLs. I want to use this to dynamically create a carousel with Javascript. I have tried the API, but cannot get it to add the images. I am using:

Appery("myCarousel").carouselRoot.carousel("add", {type : image, imageUrl : ""});

Is there a different syntax?


add images to carousel javascript

Posted: Tue Jul 12, 2016 8:55 pm
by Serhii Kulibaba

Hello William,

Please use a mapping to the carousel item with an image for that: https://devcenter.appery.io/documenta...


add images to carousel javascript

Posted: Wed Jul 13, 2016 2:16 pm
by William Bradee

Thanks. That works. For others, you have to map the image first before you can map the container to the carousel.