pub struct FormWizardState {
pub current_step: Signal<usize>,
pub total_steps: usize,
pub steps: Vec<WizardStep>,
pub is_completed: Signal<bool>,
}Expand description
Reactive State coordinator for multi-step form wizards.
Fields§
§current_step: Signal<usize>§total_steps: usize§steps: Vec<WizardStep>§is_completed: Signal<bool>Implementations§
Source§impl FormWizardState
impl FormWizardState
pub fn new(steps: Vec<WizardStep>) -> Self
Sourcepub fn next(&self) -> bool
pub fn next(&self) -> bool
Attempts to advance to the next step, executing current step’s validator.
Sourcepub fn is_current(&self, step_idx: usize) -> bool
pub fn is_current(&self, step_idx: usize) -> bool
Checks if a step index is currently active.
Sourcepub fn is_finished(&self, step_idx: usize) -> bool
pub fn is_finished(&self, step_idx: usize) -> bool
Checks if a step index is completed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FormWizardState
impl !Send for FormWizardState
impl !Sync for FormWizardState
impl !UnwindSafe for FormWizardState
impl Freeze for FormWizardState
impl Unpin for FormWizardState
impl UnsafeUnpin for FormWizardState
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