Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

carousel get image from db

hello
my app almost done.
but one more step need to finish.
can somebody help me to figure out how to get image from db and use carousel component to show the image?
i need add some function like photo gallery.
maybe you can give another solution.
thanks for your help.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

carousel get image from db

Hello Spark,

1) put your carousel on the page
2) place image component inside carousel
3) on success event of your service map you response with image to image component

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

carousel get image from db

Egor
thanks for your reply so soon!!
if the db have response one more image,how can I map the response?

by the way,today I would like to find a tutorials of "use camera and upload to db".
but the tutorials on your website might not correct.
"Taking a photo with the camera and uploading it to the Appery.io Backend"
is the content inside correct?

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

carousel get image from db

Spark,

1) if response has more then one image, then it is an array, and you can easily map any array to the page components like grid or list
2) yes, it is the one, you are looking for

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

carousel get image from db

Egor
Thanks for your help.
It did work!!
By the way,if I hope the picture list like the image below.
How can I use appery to do that?
Image

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

carousel get image from db

Spark,

1) put a grid on the page
2) make 1 col and 1 row for it
3) place image component inside
4) add css styles for grid component so it will be floated left

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

carousel get image from db

Egor
Thankswould you kindly provide some css sample code to try?

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

carousel get image from db

Hello,

Use css below:
pre
.screenName_gridName_wrapper{
width:100px;
display:inline-block;
}
/pre

Where:
screenName - screen name
gridName - grid name

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

carousel get image from db

Sergiy
Thanks for your reply!!
I will test it later.

Return to “Issues”