pub struct ProgressProps {
pub value: Option<f32>,
pub max: f32,
pub variant: ProgressVariant,
pub size: ProgressSize,
pub color: Option<String>,
pub track_color: Option<String>,
pub show_label: bool,
pub label_position: LabelPosition,
pub width: String,
pub class: Option<String>,
pub indeterminate: bool,
}Expand description
Progress indicator properties
Fields§
§value: Option<f32>Current progress value (0-100)
max: f32Maximum value (default: 100)
variant: ProgressVariantVariant (linear or circular)
size: ProgressSizeSize variant
color: Option<String>Color for the progress bar/track
track_color: Option<String>Background track color
show_label: boolShow percentage label
label_position: LabelPositionLabel position (inline for linear, inside for circular)
width: StringWidth for linear progress
class: Option<String>Additional CSS classes
indeterminate: boolIndeterminate state (loading without specific progress)
Implementations§
Source§impl ProgressProps
impl ProgressProps
Sourcepub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ProgressProps.
On the builder, call .value(...)(optional), .max(...)(optional), .variant(...)(optional), .size(...)(optional), .color(...)(optional), .track_color(...)(optional), .show_label(...)(optional), .label_position(...)(optional), .width(...)(optional), .class(...)(optional), .indeterminate(...)(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