Called when the user changes the TextInput content. With single_line=True it fires in case of focus lost and Enter key pressed. With single_line=False it fires at each key released. Args: new_value (str): the new string content of the TextInput.
(self, new_value)
| 2292 | @decorate_set_on_listener("(self, emitter, new_value)") |
| 2293 | @decorate_event |
| 2294 | def onchange(self, new_value): |
| 2295 | """Called when the user changes the TextInput content. |
| 2296 | With single_line=True it fires in case of focus lost and Enter key pressed. |
| 2297 | With single_line=False it fires at each key released. |
| 2298 | |
| 2299 | Args: |
| 2300 | new_value (str): the new string content of the TextInput. |
| 2301 | """ |
| 2302 | self.disable_update() |
| 2303 | self.set_value(new_value) |
| 2304 | self.enable_update() |
| 2305 | return (new_value, ) |
| 2306 | |
| 2307 | @decorate_set_on_listener("(self, emitter, new_value, keycode)") |
| 2308 | @decorate_event_js("""var elem=document.getElementById('%(emitter_identifier)s'); |
nothing calls this directly
no test coverage detected