<@U3TDY9EAU> A couple of tips for `TestView.kt`: ...
# tornadofx
e
@lutz A couple of tips for `TestView.kt`: 1. You can specify the title in the View constructor:
View("TestApp Title")
. 2. The root node can be built directly using
override val root = form { }
- no need for the with(root) thing in init 3. The textfield builder takes the property as an argument:
textfield(dataHolder.titleProperty())
- much simpler than first creating it and then binding towards the textProperty. 4. Instead of
addListener
you can just do
property.onChange {
. A lot less noise that way:
textProperty().onChange { create() }