<@U1M6Y2Y95> The problem you're facing is that you...
# tornadofx
e
@bodiam The problem you're facing is that you simply mention a variable, you don't assign it to anything 🙂
textarea("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.