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
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the callback which is called when the text gets changed
|
/// Sets the message that should be produced when some text is typed into
|
||||||
/// If not specified, the widget will be disabled
|
/// the [`TextInput`].
|
||||||
|
///
|
||||||
|
/// If this method is not called, the [`TextInput`] will be disabled.
|
||||||
pub fn on_input<F>(mut self, callback: F) -> Self
|
pub fn on_input<F>(mut self, callback: F) -> Self
|
||||||
where
|
where
|
||||||
F: 'a + Fn(String) -> Message,
|
F: 'a + Fn(String) -> Message,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue