Hi there,
I'm trying to figure this one out for some time. I have an image carousel with one frame and want it to display two images. (Which are stored on the device)
The Image Carousel looks like this:
Answers
- Answer
- src
- title
For this purpose I have the following code in my views "Page show":
code
getOfflineAnswers.service.__requestOptions.echo = '{"image":[{"title":"","src":"files/views/assets/image/write.png"},{"title":"","src":"files/views/assets/image/write.png"},{"title":"","src":"files/views/assets/image/write.png"}]} ';
getOfflineAnswers.execute();
/code
The getOfflineAnswers Service maps the image array to "Answers" and title to title, src to src.
This kind of works. I see one image in the Image Carousel, but can not swipe to get the next image. When I do the same thing with an Image Carousel containing 3 hardcoded frames with the same 3 images as above it works fine.
I think (but I'm not quite sure) that the exact same code worked before updating to the newest Library version (v1.2 to v2.0).