does tornado FX provide any kind of system for usi...
# tornadofx
g
does tornado FX provide any kind of system for using a node as a template? eg: I create say a gridpane with some specific row/column constraints, maybe some data, and then I want to
copy()
in the data-class sense, to create a new instance that renders the same data in the same way, but the new instance only has copies of user-facing properties and does not have copies of any yucky toolkit related properties? (EG
parent
)
I'm a pretty dyed-in-the-wool fxml user at this point, but i've got a couple tornadoFX components, and tornadoFX could fill a big hole in FXML for me if I could combine a
<fx:define>
block with some kind of smart templating system
i
Could Viewmodels together with Fragments possibly work for you?
that means: create (a) Viewmodel(s) for your data class(es), inject it into your Fragment class, bind your UI elements to the viewmodels properties.