#[repr(C)]pub struct NumberInput {
pub number_input_state: NumberInputStateWrapper,
pub text_input: TextInput,
pub style: CssPropertyWithConditionsVec,
}Fields§
§number_input_state: NumberInputStateWrapper§text_input: TextInput§style: CssPropertyWithConditionsVecImplementations§
Source§impl NumberInput
impl NumberInput
pub fn create(input: f32) -> 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_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 set_on_value_change<C: Into<NumberInputOnValueChangeCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_value_change<C: Into<NumberInputOnValueChangeCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn set_on_focus_lost<C: Into<NumberInputOnFocusLostCallback>>( &mut self, refany: RefAny, callback: C, )
pub fn with_on_focus_lost<C: Into<NumberInputOnFocusLostCallback>>( self, refany: RefAny, callback: C, ) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
Source§impl Clone for NumberInput
impl Clone for NumberInput
Source§fn clone(&self) -> NumberInput
fn clone(&self) -> NumberInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberInput
impl Debug for NumberInput
Source§impl Default for NumberInput
impl Default for NumberInput
Source§fn default() -> NumberInput
fn default() -> NumberInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for NumberInput
impl PartialEq for NumberInput
impl StructuralPartialEq for NumberInput
Auto Trait Implementations§
impl Freeze for NumberInput
impl RefUnwindSafe for NumberInput
impl Send for NumberInput
impl Sync for NumberInput
impl Unpin for NumberInput
impl UnwindSafe for NumberInput
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