pub struct StepsProps {
pub model: Prop<Vec<StepsItem>>,
pub active_index: Prop<usize>,
pub active_index_signal: Option<RwSignal<usize>>,
pub readonly: Prop<bool>,
pub exact: Prop<bool>,
pub style: OptProp<String>,
pub style_class: OptProp<String>,
pub pt: Option<StepsPt>,
pub on_active_index_change: Option<Callback<usize>>,
}Expand description
Props for the Steps component.
Wizard step indicator.
Properties accept a value or a signal. active_index is driven by the owner: a click in interactive mode reports the new index
via on_active_index_change and updates active_index_signal if it is set.
§Optional Props
- model:
impl Into<Prop<Vec<StepsItem>>>- Items.
- active_index:
impl Into<Prop<usize>>- Current step (zero-based).
- active_index_signal:
RwSignal<usize>- Two-way signal of the current step: a click writes the index to it (instead of
active_index, if set).
- Two-way signal of the current step: a click writes the index to it (instead of
- readonly:
impl Into<Prop<bool>>- Display only: a click on the steps does nothing.
- exact:
impl Into<Prop<bool>>- PrimeNG compatibility property (there it affects only router links).
- style:
impl Into<OptProp<String>>- Inline style of the root.
- style_class:
impl Into<OptProp<String>>- Extra class of the root.
- pt:
StepsPt- Pass-through parts.
- on_active_index_change:
Callback<usize>- The current step was chosen by the user.
Fields§
§model: Prop<Vec<StepsItem>>Items.
active_index: Prop<usize>Current step (zero-based).
active_index_signal: Option<RwSignal<usize>>Two-way signal of the current step: a click writes the index to it (instead of active_index, if set).
readonly: Prop<bool>Display only: a click on the steps does nothing.
exact: Prop<bool>PrimeNG compatibility property (there it affects only router links).
style: OptProp<String>Inline style of the root.
style_class: OptProp<String>Extra class of the root.
pt: Option<StepsPt>Pass-through parts.
on_active_index_change: Option<Callback<usize>>The current step was chosen by the user.
Implementations§
Source§impl StepsProps
impl StepsProps
Sourcepub fn builder() -> StepsPropsBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> StepsPropsBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building StepsProps.
On the builder, call .model(...)(optional), .active_index(...)(optional), .active_index_signal(...)(optional), .readonly(...)(optional), .exact(...)(optional), .style(...)(optional), .style_class(...)(optional), .pt(...)(optional), .on_active_index_change(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of StepsProps.
Trait Implementations§
Auto Trait Implementations§
impl Forget for StepsProps
impl Freeze for StepsProps
impl Move for StepsProps
impl RefUnwindSafe for StepsProps
impl Send for StepsProps
impl Sync for StepsProps
impl Unpin for StepsProps
impl UnsafeUnpin for StepsProps
impl UnwindSafe for StepsProps
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
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> ⓘ
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> ⓘ
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