pub struct EuvSliderProps {
pub id: &'static str,
pub name: &'static str,
pub min: f64,
pub max: f64,
pub step: f64,
pub value: Signal<f64>,
pub label: &'static str,
pub oninput: Option<Rc<dyn Fn(Event)>>,
}Expand description
Props for the euv_slider component.
Defines the strongly-typed interface for a range slider. The value is
owned by the caller through a Signal<f64> so the slider can take
part in two-way binding with the rest of the page.
Fields§
§id: &'static strThe unique identifier for the range input element.
name: &'static strThe HTML name attribute for the range input element.
min: f64The lowest selectable value.
max: f64The highest selectable value.
step: f64The granularity of the selectable values.
value: Signal<f64>The signal bound to the current slider value.
label: &'static strThe label text displayed above the slider track.
oninput: Option<Rc<dyn Fn(Event)>>Optional input event handler; the built-in handler is used when
this is None.
Implementations§
Source§impl EuvSliderProps
impl EuvSliderProps
pub fn get_id(&self) -> &'static str
pub fn get_mut_id(&mut self) -> &mut &'static str
pub fn set_id(&mut self, val: &'static str) -> &mut Self
pub fn get_name(&self) -> &'static str
pub fn get_mut_name(&mut self) -> &mut &'static str
pub fn set_name(&mut self, val: &'static str) -> &mut Self
pub fn get_min(&self) -> f64
pub fn get_mut_min(&mut self) -> &mut f64
pub fn set_min(&mut self, val: f64) -> &mut Self
pub fn get_max(&self) -> f64
pub fn get_mut_max(&mut self) -> &mut f64
pub fn set_max(&mut self, val: f64) -> &mut Self
pub fn get_step(&self) -> f64
pub fn get_mut_step(&mut self) -> &mut f64
pub fn set_step(&mut self, val: f64) -> &mut Self
pub fn get_value(&self) -> Signal<f64>
pub fn get_mut_value(&mut self) -> &mut Signal<f64>
pub fn set_value(&mut self, val: Signal<f64>) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
pub fn get_oninput(&self) -> Rc<dyn Fn(Event) + 'static>
pub fn try_get_oninput(&self) -> &Option<Rc<dyn Fn(Event) + 'static>>
pub fn get_mut_oninput(&mut self) -> &mut Option<Rc<dyn Fn(Event) + 'static>>
pub fn set_oninput( &mut self, val: Option<Rc<dyn Fn(Event) + 'static>>, ) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvSliderProps
impl Clone for EuvSliderProps
Source§impl Debug for EuvSliderProps
impl Debug for EuvSliderProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvSliderProps
impl !Send for EuvSliderProps
impl !Sync for EuvSliderProps
impl !UnwindSafe for EuvSliderProps
impl Freeze for EuvSliderProps
impl Unpin for EuvSliderProps
impl UnsafeUnpin for EuvSliderProps
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