ProgressRing
Description
A circular progress indicator
ProgressRing displays progress in a circular donut style. Use it alongside a metric value, in a dashboard card header, or to track quota/usage.
It supports determinate values (0–100), an indeterminate spinning state, and an optional text label in the centre.
API reference
public sealed class ProgressRing : ComponentBase<ProgressRing, HTMLElement>A circular progress indicator (ring/donut style).
- Namespace
- Tesserae
- Inheritance
- ComponentBase<ProgressRing, HTMLElement> → ProgressRing
Constructors
| Name | Description |
|---|---|
| ProgressRing | Initializes a new ProgressRing. |
Properties
| Name | Description |
|---|---|
| Value | Gets or sets the current progress value. |
| Max | Gets or sets the maximum value (default 100). |
public double Value { get ; set ; }Gets or sets the current progress value.
Methods
| Name | Description |
|---|---|
| Progress | Sets progress as percentage 0–100. |
| Indeterminate | Shows an indeterminate spinning ring. |
| Label | Sets the label text shown in the centre of the ring. |
| NoLabel | Hides the centre label. |
| Render | Renders the component's root HTML element. |
public ProgressRing Progress(double current, double total)Sets progress as percentage 0–100.
public ProgressRing Indeterminate(bool value = true)Shows an indeterminate spinning ring.
public ProgressRing Label(string text)Sets the label text shown in the centre of the ring.