Lars Erik Rojeras
04/07/2020, 2:50 PMtextInput(type = TextInputType.SEARCH) {
onEvent {
var timeout = 0
input = {
window.clearTimeout(timeout)
val value = self.value ?: ""
timeout = window.setTimeout({
println("Search value: $value")
}, 500)
}
}
}
I need to be able to reset and clear the field from outside, from the code. How can I do that?