pub struct ProgressProps {
pub percent: f32,
pub status: Option<ProgressStatus>,
pub show_info: bool,
pub type: ProgressType,
pub stroke_width: Option<f32>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Props for the Progress component (MVP subset).
Fields§
§percent: f32Percentage in the range [0.0, 100.0]. Values outside this range will be clamped.
status: Option<ProgressStatus>Optional status. When omitted and percent >= 100, the component
will treat the status as Success for styling.
show_info: boolWhether to render the textual percentage.
type: ProgressTypeVisual type of the progress indicator.
stroke_width: Option<f32>Optional stroke width (height for line, border width for circle).
class: Option<String>Extra CSS class name on the root element.
style: Option<String>Inline style on the root element.
Implementations§
Source§impl ProgressProps
impl ProgressProps
Sourcepub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), ())>
Create a builder for building ProgressProps.
On the builder, call .percent(...)(optional), .status(...)(optional), .show_info(...)(optional), .r#type(...)(optional), .stroke_width(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ProgressProps.
Trait Implementations§
Source§impl Clone for ProgressProps
impl Clone for ProgressProps
Source§fn clone(&self) -> ProgressProps
fn clone(&self) -> ProgressProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more