ron
03/24/2019, 12:05 PMclass SymptomSelectView : View("select symptom") {
override val root = form {
val model = ViewModel()
val symptom = model.bind { SimpleStringProperty() }
fieldset {
field("Symptom") {
textfield(symptom).required()
button("Execute") {
isDefaultButton = true
enableWhen { model.valid }
}.action {
fire(SymptomSelected(symptom.value.toUpperCase()))
}
}
}
}
}