#[repr(C)]pub struct TextArea {
pub text_area_state: TextAreaStateWrapper,
pub placeholder_style: CssPropertyWithConditionsVec,
pub container_style: CssPropertyWithConditionsVec,
pub label_style: CssPropertyWithConditionsVec,
}Expand description
Multi-line text input widget.
Fields§
§text_area_state: TextAreaStateWrapper§placeholder_style: CssPropertyWithConditionsVec§container_style: CssPropertyWithConditionsVec§label_style: CssPropertyWithConditionsVecImplementations§
Source§impl TextArea
impl TextArea
pub fn create() -> Self
Sourcepub fn set_text(&mut self, text: AzString)
pub fn set_text(&mut self, text: AzString)
Sets the (multi-line) text. Newlines in text are preserved.
pub fn with_text(self, text: AzString) -> Self
pub fn set_placeholder(&mut self, placeholder: AzString)
pub fn with_placeholder(self, placeholder: AzString) -> Self
pub fn set_on_text_input<C: Into<TextAreaOnTextInputCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_text_input<C: Into<TextAreaOnTextInputCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_on_virtual_key_down<C: Into<TextAreaOnVirtualKeyDownCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_virtual_key_down<C: Into<TextAreaOnVirtualKeyDownCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_on_focus_lost<C: Into<TextAreaOnFocusLostCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_focus_lost<C: Into<TextAreaOnFocusLostCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_container_style(&mut self, style: CssPropertyWithConditionsVec)
pub fn with_container_style(self, style: CssPropertyWithConditionsVec) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
impl Eq for TextArea
impl StructuralPartialEq for TextArea
Auto Trait Implementations§
impl Freeze for TextArea
impl RefUnwindSafe for TextArea
impl Send for TextArea
impl Sync for TextArea
impl Unpin for TextArea
impl UnsafeUnpin for TextArea
impl UnwindSafe for TextArea
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more