Skip to main content

SliderProps

Struct SliderProps 

Source
pub struct SliderProps {
    pub value: Box<dyn InputValueWrapper + 'static>,
    pub min: LocalBoxSignal<'static, f32>,
    pub max: LocalBoxSignal<'static, f32>,
    pub step: LocalBoxSignal<'static, f32>,
    pub label: LocalBoxSignal<'static, String>,
    pub apply: Option<Box<dyn FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static>>,
}

Fields§

§value: Box<dyn InputValueWrapper + 'static>§min: LocalBoxSignal<'static, f32>§max: LocalBoxSignal<'static, f32>§step: LocalBoxSignal<'static, f32>§label: LocalBoxSignal<'static, String>§apply: Option<Box<dyn FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static>>

Implementations§

Source§

impl SliderProps

Source

pub fn new() -> Self

Source§

impl SliderProps

Source

pub fn value(self, v: impl InputValueWrapper + 'static) -> SliderProps

Source§

impl SliderProps

Source

pub fn min(self, v: f32) -> SliderProps

Source

pub fn min_signal(self, v: impl Signal<Item = f32> + 'static) -> SliderProps

Source§

impl SliderProps

Source

pub fn max(self, v: f32) -> SliderProps

Source

pub fn max_signal(self, v: impl Signal<Item = f32> + 'static) -> SliderProps

Source§

impl SliderProps

Source

pub fn step(self, v: f32) -> SliderProps

Source

pub fn step_signal(self, v: impl Signal<Item = f32> + 'static) -> SliderProps

Source§

impl SliderProps

Source

pub fn label(self, v: String) -> SliderProps

Source

pub fn label_signal( self, v: impl Signal<Item = String> + 'static, ) -> SliderProps

Source§

impl SliderProps

Source

pub fn apply( self, v: impl FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> + 'static, ) -> SliderProps

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.