edvin
10/23/2016, 11:44 AMtextarea("this works")
calls the textarea
builder. It creates a textarea and adds it to the children list of the parent (root in your case) - that's why it works 🙂 Doing outputView.root
simply says "variable". It does nothing. You need to assign it do the children list. It can be done in many ways, the simplest is just this += inputView
. If you don't use inputView
for anything else, you don't even need to inject it, you can just say this += (InputView::class)
and it will be automatically injected.