Page 1 of 1

How to create a custom component for N number of times ?

Posted: Wed Jan 21, 2015 5:07 am
by RAJESH KUMAR BEHURA

Problem Scenario - I have created a div named "div_staffXXX" component in html which contains a text box, a check box and a summit button. If i get data of 10 staff from database, then I want to show 10 "divStaffXX1" to "divStaffX10" on the front end screen. How can I achieve this in appery. I did not find any dynamic way to create 1 to N number of same components with different id and names.

Please advice.

Thanks,
Rajesh


How to create a custom component for N number of times ?

Posted: Wed Jan 21, 2015 5:33 am
by Yurii Orishchuk

Hi Rajesh,

Please follow this tutorial to understand how to iterate items with mapping links:

http://devcenter.appery.io/tutorials/...

Regards.


How to create a custom component for N number of times ?

Posted: Thu Jan 22, 2015 12:03 pm
by RAJESH KUMAR BEHURA

In the above problem, i want to create a custom componet div_Staff( contain name, id, job type text boxes) and I want to use the same component in multiple pages. How can I achieve this in appery


How to create a custom component for N number of times ?

Posted: Fri Jan 23, 2015 7:27 am
by Maryna Brodina

Hello!

Here is how to create and use custom components http://devcenter.appery.io/tutorials/...