aayush
09/25/2017, 11:10 AMval under = textfield()
TextFields.bindAutoCompletion(
under, FXCollections
.observableArrayList(
GroupsComboItem("some_id", "some_name", "some_parent")))
data class GroupsComboItem(val id: String, val label: String, val parent: String?) {
override fun toString(): String {
return label
}
}
I want to get the id which I passed on a button click.
If I use a combobox instead, I can just simply write combobox.selectedItem.id
.