```textInput(type = TextInputType.SEARCH) { on...
# kvision
l
Copy code
textInput(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?