I would like to append an image to the rows already created by the above method but I cannot target the rows. Is there a workaround to do that or should I create the rows one by one to be able to target them?
I'll post an example on updating some text.
- tableView = Titanium.UI.createTableView
- data[x] = the default section being "0" (zero)
- rows[i] = the row you are "targeting"
- children[z] = the element in the order you appended to the row.
tableView.data[x].rows[y].children[z].text = "hello!"
when you say "target" rows do you mean how do you get access to a row object?
the table view has a sections array which in turn has a rows array. to access a row object, you just need to get to the row you want within the rows array.
all table views have at least 1 section by default if you don't create one.
Thanks Nolan, I'll work on that this week end. As a former Flash developper I still have trouble to figure out the object hierarchy inside Titanium