pub struct NumberInputProperties<T: PrimInt + Display + FromStr + 'static> {Show 14 fields
pub value: T,
pub class: Classes,
pub width_chars: Option<u8>,
pub disabled: bool,
pub onminus: Option<Callback<()>>,
pub onchange: Option<Callback<T>>,
pub onplus: Option<Callback<()>>,
pub unit: Option<NumberInputUnit>,
pub min: T,
pub max: T,
pub state: InputState,
pub input_name: Option<String>,
pub minus_button_aria_label: AttrValue,
pub plus_button_aria_label: AttrValue,
}Fields§
§value: TValue of the number input.
class: ClassesAdditional classes added to the number input.
width_chars: Option<u8>Sets the width of the number input to a number of characters
disabled: boolIndicates whether the whole number input should be disabled.
onminus: Option<Callback<()>>Callback for the minus button.
onchange: Option<Callback<T>>Callback the text input changing.
onplus: Option<Callback<()>>Callback for the plus button.
unit: Option<NumberInputUnit>Adds the given unit to the number input.
min: TMinimum value of the number input, disabling the minus button when reached.
max: TMaximum value of the number input, disabling the plus button when reached.
state: InputStateValue to indicate if the input is modified to show the validiation state.
input_name: Option<String>Name of the input.
Aria label of the minus button.
Aria label of the plus button.
Trait Implementations§
Source§impl<T: Clone + PrimInt + Display + FromStr + 'static> Clone for NumberInputProperties<T>
impl<T: Clone + PrimInt + Display + FromStr + 'static> Clone for NumberInputProperties<T>
Source§fn clone(&self) -> NumberInputProperties<T>
fn clone(&self) -> NumberInputProperties<T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: PartialEq + PrimInt + Display + FromStr + 'static> PartialEq for NumberInputProperties<T>
impl<T: PartialEq + PrimInt + Display + FromStr + 'static> PartialEq for NumberInputProperties<T>
Source§impl<T: PrimInt + Display + FromStr + 'static> Properties for NumberInputProperties<T>
impl<T: PrimInt + Display + FromStr + 'static> Properties for NumberInputProperties<T>
impl<T: PrimInt + Display + FromStr + 'static> StructuralPartialEq for NumberInputProperties<T>
Auto Trait Implementations§
impl<T> Freeze for NumberInputProperties<T>where
T: Freeze,
impl<T> !RefUnwindSafe for NumberInputProperties<T>
impl<T> !Send for NumberInputProperties<T>
impl<T> !Sync for NumberInputProperties<T>
impl<T> Unpin for NumberInputProperties<T>where
T: Unpin,
impl<T> !UnwindSafe for NumberInputProperties<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.