I’m trying my best to take advantage of these sweet new widgets, but I have to admit that for the life of me I just can’t get widget.newTableView working. At all.
Given this ridiculously simple table:
local tempitems = {
{ title="Scrap Cola" },
{ title="Fooz Beer" },
{ categoryName="Alcohol" }
}
It seems like making the list view and injecting the table should be as simple as:
local itemlist = widget.newTableView{ rowHeight = 60 }
itemlist:sync(tempitems)
However, I keep getting an errors in ‘renderItem’ and ‘sync’ about indexing nil values. (And I really have no idea what renderItem is in this situation…) I tried using the sample code instead but same deal. Any ideas? [import]uid: 41884 topic_id: 13456 reply_id: 313456[/import]
See the comments for