feat: add width setter

This commit is contained in:
Samson 2024-07-21 09:29:24 -05:00 committed by Héctor Ramón Jiménez
parent aed59bae50
commit ac1d98aa9b
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -109,6 +109,12 @@ where
self
}
/// Sets the width of the [`TextEditor`].
pub fn width(mut self, width: impl Into<Length>) -> Self {
self.width = width.into();
self
}
/// Sets the message that should be produced when some action is performed in
/// the [`TextEditor`].
///