Ilya Tel
01/26/2023, 9:44 AMval state = FormState().apply {
set("type" to "${FlatTypeEnum.residential}")
}
I tried different options for bind and nothing worked.
selectInput(options = FlatTypeEnum.values().map { "$it" to it.translate() }, value = "${FlatTypeEnum.residential}") {
bind(state.getSub("type"), {it?.value}) {//if I use this the options are not shown anymore
this.value = it
}
}
with bind i got <select class="form-select"></select>
without itRobert Jaros
01/26/2023, 10:00 AMIlya Tel
01/26/2023, 10:04 AM