feat: add width setter
This commit is contained in:
parent
aed59bae50
commit
ac1d98aa9b
1 changed files with 6 additions and 0 deletions
|
|
@ -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`].
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue