pub struct InputNumberProps {Show 15 fields
pub value: Option<f64>,
pub default_value: Option<f64>,
pub min: Option<f64>,
pub max: Option<f64>,
pub step: Option<f64>,
pub precision: Option<u32>,
pub controls: bool,
pub disabled: bool,
pub status: Option<ControlStatus>,
pub prefix: Option<Element>,
pub suffix: Option<Element>,
pub class: Option<String>,
pub style: Option<String>,
pub on_change: Option<EventHandler<Option<f64>>>,
pub on_change_complete: Option<EventHandler<Option<f64>>>,
}Expand description
Numeric input with step controls and basic formatting.
Fields§
§value: Option<f64>Controlled value. When set, internal state is ignored.
default_value: Option<f64>Uncontrolled initial value.
min: Option<f64>§max: Option<f64>§step: Option<f64>§precision: Option<u32>§controls: bool§disabled: bool§status: Option<ControlStatus>§prefix: Option<Element>§suffix: Option<Element>§class: Option<String>§style: Option<String>§on_change: Option<EventHandler<Option<f64>>>Fired whenever the numeric value changes. None means empty.
on_change_complete: Option<EventHandler<Option<f64>>>Fired on blur or Enter to indicate the current committed value.
Implementations§
Source§impl InputNumberProps
impl InputNumberProps
Sourcepub fn builder() -> InputNumberPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> InputNumberPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building InputNumberProps.
On the builder, call .value(...)(optional), .default_value(...)(optional), .min(...)(optional), .max(...)(optional), .step(...)(optional), .precision(...)(optional), .controls(...)(optional), .disabled(...)(optional), .status(...)(optional), .prefix(...)(optional), .suffix(...)(optional), .class(...)(optional), .style(...)(optional), .on_change(...)(optional), .on_change_complete(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of InputNumberProps.
Trait Implementations§
Source§impl Clone for InputNumberProps
impl Clone for InputNumberProps
Source§fn clone(&self) -> InputNumberProps
fn clone(&self) -> InputNumberProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more