Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to loop through all TextFields in an Alloy View

$
0
0

Hello,

I have created my view with Alloy markup. Is it possible to loop through similar elements (like a TextField) in a View?

so something similar to:

for (var x = 0; x < TextField.length; x++)
{
    ...do something with each text field found in view
}
I understand this can be done if programmatically setting up each textfield using Alloy.createTextField and setting each as a value in an array, but I can find how to do this with an Alloy layout.

Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>