Improve consistency of on_input documentation
This commit is contained in:
parent
7e69cb4b18
commit
70e4af46aa
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue