ProgressBar¶
Value-based progress indicator with label and percentage display. Implements Component and Themed.
Construction¶
Types¶
type ProgressBarOpts struct {
Label string // Optional text left of bar
ShowPercent bool // Display percentage right of bar
Width int // Override bar width (0 = use component width)
}
Usage¶
Update progress programmatically:
Values are clamped to the [0.0, 1.0] range.
Keybindings¶
None — ProgressBar is a display-only component.
State¶
| Method | Description |
|---|---|
Value() |
Current progress (0.0–1.0) |
SetValue(v) |
Set progress (clamped) |
Increment(delta) |
Add to current value |