Page 1 of 1

Image Carousel won't update after adding images

Posted: Fri Mar 07, 2014 9:53 am
by neogucky

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).


Image Carousel won't update after adding images

Posted: Fri Mar 07, 2014 10:18 am
by neogucky

Update:

I switched back to Library v1.2 and now the image carousels work again. But I would very much like to work with the newest Library. Any input how to get that working?

Additionally: The Image Carousel indicators wouldn't show in the newest version (even with hardcoded Carousels and Indicators set to show). This was fixed by going back to v1.2 as well.


Image Carousel won't update after adding images

Posted: Fri Mar 07, 2014 2:54 pm
by Maryna Brodina

Hello! Unfortunately it's a bug. Should be fixed with next release (middle April)


Image Carousel won't update after adding images

Posted: Mon Apr 14, 2014 2:04 pm
by Maryna Brodina

Hello!

This bug was fixed.