pub struct SliderProps {Show 15 fields
pub model_value: f64,
pub min: f64,
pub max: f64,
pub step: f64,
pub disabled: bool,
pub show_input: bool,
pub show_stops: bool,
pub show_tooltip: bool,
pub direction: String,
pub range: bool,
pub format_tooltip: Option<String>,
pub on_change: Option<EventHandler<f64>>,
pub on_input: Option<EventHandler<f64>>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Slider props
Fields§
§model_value: f64Current value
min: f64Minimum value
max: f64Maximum value
step: f64Step size
disabled: boolWhether the slider is disabled
show_input: boolWhether to show input
show_stops: boolWhether to show stops
show_tooltip: boolWhether to show tooltip
direction: StringSlider orientation
range: boolWhether to allow range selection
format_tooltip: Option<String>Format tooltip text
on_change: Option<EventHandler<f64>>Change event handler
on_input: Option<EventHandler<f64>>Input event handler
class: Option<String>Additional CSS classes
style: Option<String>Inline styles
Implementations§
Source§impl SliderProps
impl SliderProps
Sourcepub fn builder() -> SliderPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> SliderPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SliderProps.
On the builder, call .model_value(...)(optional), .min(...)(optional), .max(...)(optional), .step(...)(optional), .disabled(...)(optional), .show_input(...)(optional), .show_stops(...)(optional), .show_tooltip(...)(optional), .direction(...)(optional), .range(...)(optional), .format_tooltip(...)(optional), .on_change(...)(optional), .on_input(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SliderProps.
Trait Implementations§
Source§impl Clone for SliderProps
impl Clone for SliderProps
Source§fn clone(&self) -> SliderProps
fn clone(&self) -> SliderProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for SliderProps
impl PartialEq for SliderProps
Source§fn eq(&self, other: &SliderProps) -> bool
fn eq(&self, other: &SliderProps) -> bool
self and other values to be equal, and is used by ==.