#[repr(C)]pub struct Stepper {
pub stepper_state: StepperStateWrapper,
pub labels: StringVec,
pub container_style: CssPropertyWithConditionsVec,
}Expand description
A horizontal numbered-step progress indicator with a step-change callback.
Fields§
§stepper_state: StepperStateWrapper§labels: StringVecThe label of each step, in order. The step count is labels.len().
container_style: CssPropertyWithConditionsVecStyle for the row container.
Implementations§
Source§impl Stepper
impl Stepper
Sourcepub fn create(labels: StringVec) -> Self
pub fn create(labels: StringVec) -> Self
Creates a stepper from the given step labels, with the first step current.
Sourcepub fn set_current_step(&mut self, current_step: usize)
pub fn set_current_step(&mut self, current_step: usize)
Sets the current (zero-based) step, clamped into [0, total_steps - 1].
Sourcepub fn with_current_step(self, current_step: usize) -> Self
pub fn with_current_step(self, current_step: usize) -> Self
Builder-style setter for the current step.
pub fn swap_with_default(&mut self) -> Self
pub fn set_on_step_change<C: Into<StepperOnStepChangeCallback>>( &mut self, data: RefAny, on_step_change: C, )
pub fn with_on_step_change<C: Into<StepperOnStepChangeCallback>>( self, data: RefAny, on_step_change: C, ) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
impl Eq for Stepper
impl StructuralPartialEq for Stepper
Auto Trait Implementations§
impl Freeze for Stepper
impl RefUnwindSafe for Stepper
impl Send for Stepper
impl Sync for Stepper
impl Unpin for Stepper
impl UnsafeUnpin for Stepper
impl UnwindSafe for Stepper
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more