|
Thank you. And welcome to the list. Your example is not quite what I was trying to do. Your columnData is a normal table created from {} so it has the (not sure of the term) normal metatable. After the assignment, view is now a table with a different metatable. And the code: table.insert(view, 1, “foo”) is what I’m *was* trying to do — which doesn’t work. But I think the more general essence of your suggestion was to build the structure from the inside out. So I started with a normal table using { … } and inserted my checkboxes into that table as you suggested. I then passed that to f:scrolled_view which creates a scroll box with the checkboxes inside. So far so good. Then I used that as part of (again) a normal table and passed that to f:column which creates a column of UI elements. Rinse and repeat building from the inner most UI elements out. Where I was confused is I was thinking somehow the syntax f( …, g( … ), … ) was calling f first which of course it isn’t. I also thought some type of magic was happening as the table was being constructed. Viewing it in the more primitive terms is what I needed. Thank you very much Perry
|
Attachment:
signature.asc
Description: Message signed with OpenPGP