Page 1 of 1

Carousel questions

Posted: Fri Mar 14, 2014 12:40 pm
by Malcolm van Raalte

#1
I put a carousel on a page and have it bound to an array of objects returned by a database service. When the service returns just one item swiping on the carousel causes the item to disappear. Another swipe causes the item to show for a sub-second and then disappear. How can I get the item to not swipe out?

#2
Is there any way to set the height of the carousel to "auto"?

#3
Inside the carousel item I have placed an HTML control. I would like to bind the HTML control to the data that comes back for the Carousel control. What is the best way to render the HTML based on the data?


Carousel questions

Posted: Fri Mar 14, 2014 1:34 pm
by Maryna Brodina

Hello!

1) It's a bug in 1.2 and lower libraries version (we'll fix it in the next release - mid April). Please try 2.0 libraries version.

2) No, but you can set any size in editor or in runtime using JS.

3) Could you clarify in more details what are you trying to do and what exactly doesn't work?


Carousel questions

Posted: Fri Mar 14, 2014 1:45 pm
by Malcolm van Raalte

Given the response to #2 I guess I can't use carousel. I would need to have content in the carousel item that has a dynamic height.

So that leaves me with the task of rolling my own carousel control. What I'll need to do is this:

  • fetch data from a Data Service

  • pass the data in to an HTML control

  • display the data using my own HTML

  • implement swipe left/right to view subsets of the data

    Are there any guides for such a task?


Carousel questions

Posted: Fri Mar 14, 2014 1:49 pm
by Malcolm van Raalte

#1 is a minimally helpful response. I presume you know how to switch to the 2.0 libraries. I don't, off-hand. By including quick instructions on how to do so you could save me the time of having to figure it out. Would be so helpful...


Carousel questions

Posted: Fri Mar 14, 2014 2:22 pm
by Maryna Brodina

You can do that in App Settings--External resources
Image


Carousel questions

Posted: Fri Mar 14, 2014 3:18 pm
by Maryna Brodina

[quote:]Are there any guides for such a task? [/quote] no unfortunately. You can create and implement your own carousel.