Page 1 of 1

carousel get image from db

Posted: Wed Apr 01, 2015 11:55 am
by Spark Chao

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.


carousel get image from db

Posted: Wed Apr 01, 2015 1:41 pm
by Egor Kotov6832188

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


carousel get image from db

Posted: Wed Apr 01, 2015 1:48 pm
by Spark Chao

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?


carousel get image from db

Posted: Thu Apr 02, 2015 8:36 am
by Egor Kotov6832188

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


carousel get image from db

Posted: Mon Apr 06, 2015 1:57 pm
by Spark Chao

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


carousel get image from db

Posted: Tue Apr 07, 2015 6:50 pm
by Egor Kotov6832188

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


carousel get image from db

Posted: Wed Apr 08, 2015 4:19 am
by Spark Chao

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


carousel get image from db

Posted: Thu Apr 09, 2015 7:27 am
by Serhii Kulibaba

Hello,

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

Where:
screenName - screen name
gridName - grid name


carousel get image from db

Posted: Thu Apr 09, 2015 1:17 pm
by Spark Chao

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