RAJESH KUMAR BEHURA
Posts: 0
Joined: Wed Jan 21, 2015 4:56 am

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

Hi Rajesh,

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

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

Regards.

RAJESH KUMAR BEHURA
Posts: 0
Joined: Wed Jan 21, 2015 4:56 am

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello!

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

Return to “Issues”