gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

Display counter for text field at run time #608

Open tman32768 opened 6 years ago

tman32768 commented 6 years ago

I am loading a random length array of numbers from JSON in the format {"somedata":[11,22,33,...]} and displaying the numbers in a column of text fields.

How can I give each text field a unique number (i.e. display array counter value) similar to the way the grid rows are numbered?