Struct forky_web::TextSliderProps
source · pub struct TextSliderProps {
pub min: f32,
pub max: f32,
pub step: f32,
pub value: ReadSignal<f32>,
pub set_value: WriteSignal<f32>,
}Expand description
Props for the TextSlider component.
Required Props
- value:
impl Into<ReadSignal<f32>> - set_value:
impl Into<WriteSignal<f32>>
Optional Props
Fields§
§min: f32§max: f32§step: f32§value: ReadSignal<f32>§set_value: WriteSignal<f32>Implementations§
source§impl TextSliderProps
impl TextSliderProps
sourcepub fn builder() -> TextSliderPropsBuilder<((), (), (), (), ())>
pub fn builder() -> TextSliderPropsBuilder<((), (), (), (), ())>
Create a builder for building TextSliderProps.
On the builder, call .min(...)(optional), .max(...)(optional), .step(...)(optional), .value(...), .set_value(...) to set the values of the fields.
Finally, call .build() to create the instance of TextSliderProps.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TextSliderProps
impl Send for TextSliderProps
impl Sync for TextSliderProps
impl Unpin for TextSliderProps
impl UnwindSafe for TextSliderProps
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