diff options
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r-- | native/src/widget/text_input.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 4c10f5bb..63751b4d 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -113,8 +113,10 @@ where self } - /// Sets the callback which is called when the text gets changed - /// If not specified, the widget will be disabled + /// Sets the message that should be produced when some text is typed into + /// the [`TextInput`]. + /// + /// If this method is not called, the [`TextInput`] will be disabled. pub fn on_input<F>(mut self, callback: F) -> Self where F: 'a + Fn(String) -> Message, |