Introduce state method to TextInput
This commit is contained in:
parent
a165eddd75
commit
55d2c5886f
1 changed files with 7 additions and 0 deletions
|
|
@ -163,6 +163,13 @@ impl<'a, Message, Renderer: self::Renderer> TextInput<'a, Message, Renderer> {
|
|||
self.style = style.into();
|
||||
self
|
||||
}
|
||||
|
||||
/// Returns the current [`State`] of the [`TextInput`].
|
||||
///
|
||||
/// [`TextInput`]: struct.TextInput.html
|
||||
pub fn state(&self) -> &State {
|
||||
self.state
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, Message, Renderer> Widget<Message, Renderer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue