edvin
08/16/2017, 12:17 PMedvin
08/16/2017, 5:08 PMedvin
08/16/2017, 5:08 PMedvin
08/16/2017, 5:09 PMeddy_wm
08/16/2017, 7:45 PMedvin
08/16/2017, 7:58 PMeddy_wm
08/16/2017, 8:36 PMcarlw
08/16/2017, 8:58 PMpim
08/16/2017, 9:57 PMeddy_wm
08/16/2017, 10:57 PMeddy_wm
08/16/2017, 11:34 PMpreferences
.edvin
08/17/2017, 5:06 AMaayush
08/17/2017, 6:41 AMclass MainView : View() {
val persons : MutableList<Person> = mutableListOf<Person>().observable() //custom Class MutableList
var taskName: TextField by singleAssign()
override val root = vbox {
taskName = textfield {
action {
persons.add(Person(taskName.text))
}
}
listview(persons) { // error here
cellFormat {
graphic = cache {
form {
fieldset {
label(it.name)
alignment = Pos.CENTER
style {
fontSize = 22.px
fontWeight = FontWeight.BOLD
}
}
}
}
}
}
}
}
class Person(val name: String)
Slack Conversationedvin
08/17/2017, 7:18 AMedvin
08/17/2017, 7:19 AMval persons = FXCollections.observableArrayList<Person>()
instead.aayush
08/17/2017, 7:19 AMedvin
08/17/2017, 7:20 AMedvin
08/17/2017, 7:21 AMaayush
08/17/2017, 7:21 AMedvin
08/17/2017, 7:23 AMaayush
08/17/2017, 7:23 AMaayush
08/17/2017, 7:24 AMedvin
08/17/2017, 7:24 AMedvin
08/17/2017, 7:24 AMpike
08/17/2017, 7:43 AMedvin
08/17/2017, 8:01 AMpike
08/17/2017, 8:22 AMedvin
08/17/2017, 8:31 AMpike
08/17/2017, 8:32 AM