Hi All,
Still ‘battling’ along with the transition from jQuery / web dev to app development in Corona, and chatting with a friend about the next problem I need to solve, realised I could do with further pointers from the community - if anyone has a few mins, always appreciated!
I have a table with lots of rows, which will be shown in a list. I have a list from the tableView and UI modules and have adapted each row in the list to contain several display.newText elements, with values based on the contents of the list.
I now need to add a button to each row too, which will increment or decrement a numeric value in a text field (or just change the value of a display.newText - havnt decided yet and am a bit scared of native.textField / native.textBox having read around)
In jQuery, I could target the action of a button easily enough to affect a specific element via the DOM - using “parent”, “child”, “closest” etc. How could this work in Corona?
Eg, if i’m iterating over my table of rows, and creating objects based on my table’s content… will I be able to dynamically add buttons and things that can interact with elements in the same row?
(note each row is a display group)
Sorry if the above doesnt make sense - I dont have any example code up and running for this yet - just the table based list, which comes from one of the demo scripts here:
http://developer.coronalabs.com/content/list-view-3
Any thoughts or advice? (links and examples / tuts welcome too of course!)