William Bradee
Posts: 0
Joined: Thu Oct 03, 2013 8:45 pm

add images to carousel javascript

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

add images to carousel javascript

Hello William,

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

William Bradee
Posts: 0
Joined: Thu Oct 03, 2013 8:45 pm

add images to carousel javascript

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

Return to “Issues”