WSJTim
5 years agoBinge Watcher
Initializing children of a custom component
I'm writing a custom component that extends LayoutGroup and I'd like to set up event observers on children. When my init() sub gets called, m.top has no children yet so I can't access any yet. In lat...
- 5 years ago
Ok, I got this working. If anyone else is curious, it looks like the correct solution is to observe the "change" property...
https://developer.roku.com/docs/references/scenegraph/abstract-nodes/node.md
I get an "add" operation when each child is added. Cool!