abhinay
11/10/2017, 6:37 PMclass CustomerForm : View("Register Customer") {
override val root = form {
val fieldset = fieldset("Personal Information", FontAwesomeIconView(USER)) {
val field = field("Name", Orientation.VERTICAL) {
val textarea = textarea()
VBox.setVgrow(textarea, Priority.ALWAYS)
}
VBox.setVgrow(field, Priority.ALWAYS)
}
VBox.setVgrow(fieldset, Priority.ALWAYS)
}
}
kastork
11/10/2017, 6:38 PMkastork
11/10/2017, 6:44 PMkastork
11/10/2017, 6:45 PMkastork
11/10/2017, 6:45 PMabhinay
11/10/2017, 7:03 PMOrientation.VERTICAL
to the field definition and set vgrow on TextField?kastork
11/10/2017, 7:04 PMkastork
11/10/2017, 7:11 PMkastork
11/10/2017, 7:11 PMedvin
11/10/2017, 8:27 PMedvin
11/10/2017, 8:39 PMJeff Thomas
11/11/2017, 1:01 PMJeff Thomas
11/11/2017, 5:47 PMprivate val fooModel: FooModel by inject()
private val foo: TextField by fxid()
init {
foo.textProperty().bindBidirectional(fooModel.barProperty)
foo.validator {
success("OK")
}
}
Running the app with the validator statement throws an IllegalArgumentException "The addValidator extension can only be used on inputs that are already bound bidirectionally to a property in a Viewmodel. Use validator.addValidator() instead or make the property's bean field point to a ViewModel."
I thought the previous statement did the bidirectional bind. Any tips?shodan45
11/11/2017, 8:42 PMshodan45
11/11/2017, 8:42 PMshodan45
11/11/2017, 8:46 PMthomasnield
11/11/2017, 9:05 PMthomasnield
11/11/2017, 9:05 PMshodan45
11/11/2017, 9:42 PMshodan45
11/11/2017, 9:43 PMthomasnield
11/12/2017, 1:03 AMthomasnield
11/12/2017, 1:03 AMthomasnield
11/12/2017, 1:04 AMthomasnield
11/12/2017, 1:05 AMthomasnield
11/12/2017, 1:06 AMshodan45
11/12/2017, 2:26 AMnimakro
11/12/2017, 8:35 AMVBox
is the javaFx class and vbox
is the kotlin builder methode provided by tornadoFx...nimakro
11/12/2017, 8:36 AManidotnet
11/12/2017, 3:35 PManidotnet
11/12/2017, 3:35 PM