#[repr(C)]pub struct TextInput {
pub text_input_state: TextInputStateWrapper,
pub placeholder_style: CssPropertyWithConditionsVec,
pub container_style: CssPropertyWithConditionsVec,
pub label_style: CssPropertyWithConditionsVec,
}Fields§
§text_input_state: TextInputStateWrapper§placeholder_style: CssPropertyWithConditionsVec§container_style: CssPropertyWithConditionsVec§label_style: CssPropertyWithConditionsVecImplementations§
Source§impl TextInput
impl TextInput
pub fn create() -> Self
pub fn with_text(self, text: AzString) -> Self
pub fn set_text(&mut self, text: AzString)
pub fn set_placeholder(&mut self, placeholder: AzString)
pub fn with_placeholder(self, placeholder: AzString) -> Self
pub fn set_on_text_input<C: Into<TextInputOnTextInputCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_text_input<C: Into<TextInputOnTextInputCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_on_virtual_key_down<C: Into<TextInputOnVirtualKeyDownCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_virtual_key_down<C: Into<TextInputOnVirtualKeyDownCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_on_focus_lost<C: Into<TextInputOnFocusLostCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_focus_lost<C: Into<TextInputOnFocusLostCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_placeholder_style(&mut self, style: CssPropertyWithConditionsVec)
pub fn with_placeholder_style(self, style: CssPropertyWithConditionsVec) -> Self
pub fn set_container_style(&mut self, style: CssPropertyWithConditionsVec)
pub fn with_container_style(self, style: CssPropertyWithConditionsVec) -> Self
pub fn set_label_style(&mut self, style: CssPropertyWithConditionsVec)
pub fn with_label_style(self, style: CssPropertyWithConditionsVec) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
impl StructuralPartialEq for TextInput
Auto Trait Implementations§
impl Freeze for TextInput
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
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<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