bodiam
10/23/2016, 10:24 AMbodiam
10/23/2016, 10:25 AMron
10/23/2016, 10:28 AMron
10/23/2016, 10:29 AMcarlw
10/23/2016, 10:30 AMbodiam
10/23/2016, 10:33 AMbodiam
10/23/2016, 10:33 AMron
10/23/2016, 10:33 AMron
10/23/2016, 10:33 AMbodiam
10/23/2016, 10:34 AMbodiam
10/23/2016, 10:34 AMron
10/23/2016, 10:34 AMbodiam
10/23/2016, 10:35 AMbodiam
10/23/2016, 10:36 AMbodiam
10/23/2016, 10:37 AMbodiam
10/23/2016, 10:37 AMron
10/23/2016, 10:54 AMedvin
10/23/2016, 11:40 AMedvin
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.edvin
10/23/2016, 11:45 AM+=
thing works for nodes also, so you could say this += inputView.root
, but there is an overloaded version that takes a View, that's why this += inputView
works as well.ron
10/23/2016, 11:48 AM+= (InputView::class)
only works with the plusasignment?edvin
10/23/2016, 11:49 AMron
10/23/2016, 11:49 AMoverride val root = borderpane {left = (CategoriesListView::class)
does not workron
10/23/2016, 11:49 AMedvin
10/23/2016, 11:50 AM=
is that it requires a certain type, and that type is not KClass 🙂ron
10/23/2016, 11:51 AMedvin
10/23/2016, 11:51 AMbodiam
10/23/2016, 11:51 AM