pub struct TextAreaEx {
pub hint: String,
pub value: String,
pub modifier: Modifier,
pub on_change: Option<Rc<dyn Fn(String)>>,
pub on_submit: Option<Rc<dyn Fn(String)>>,
pub visual_transformation: Option<Rc<dyn VisualTransformation>>,
pub keyboard_options: Option<KeyboardOptions>,
pub ime_action: Option<ImeAction>,
}Expand description
Extended TextArea with optional visual transformation, keyboard options, and IME action.
Fields§
§hint: String§value: String§modifier: Modifier§on_change: Option<Rc<dyn Fn(String)>>§on_submit: Option<Rc<dyn Fn(String)>>§visual_transformation: Option<Rc<dyn VisualTransformation>>§keyboard_options: Option<KeyboardOptions>§ime_action: Option<ImeAction>Implementations§
Source§impl TextAreaEx
impl TextAreaEx
pub fn new(hint: impl Into<String>, value: String, modifier: Modifier) -> Self
pub fn on_change(self, f: impl Fn(String) + 'static) -> Self
pub fn on_submit(self, f: impl Fn(String) + 'static) -> Self
pub fn visual_transformation(self, vt: impl VisualTransformation) -> Self
pub fn keyboard_options(self, opts: KeyboardOptions) -> Self
pub fn ime_action(self, action: ImeAction) -> Self
pub fn build(self) -> View
Auto Trait Implementations§
impl !RefUnwindSafe for TextAreaEx
impl !Send for TextAreaEx
impl !Sync for TextAreaEx
impl !UnwindSafe for TextAreaEx
impl Freeze for TextAreaEx
impl Unpin for TextAreaEx
impl UnsafeUnpin for TextAreaEx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more