I’m setting up the params table when I insert rows into a tableView
[lua]
tableView:insertRow
{
isCategory = isCategory,
rowHeight = rowHeight,
rowColor = rowColor,
lineColor = lineColor,
params = { foo = false }
}
[/lua]
…and it all seems to go well, but when I try to access params inside onRowRender() it gives me an error. Says field params is nil. I’m accessing it like this:
[lua]
if event.row.params.foo then
[/lua]
What’s really confusing is that if I take a look at the event.row table, I see the params table is there.
Has anyone successfully used the params part of tableView? I’m using the github version of v2 widgets (downloaded the latest version just a few days ago). Also tried it with the built-in widgets in SDK build 1178 and got the same results.
Jay