WebRADDocumentationExplore WebRAD ↗
WEBRAD / TECHNICAL REFERENCE

Progress Bar

Linear or circular progress with a range, value, and calculated percentage.

WebProgressBarStandardVisual2 events

Quick start

Add ProgressBar1 in the Designer. Use the example in a page method.

ProgressBar1 · event
ProgressBar1.setRange(0, 200);
ProgressBar1.value = 50;
ProgressBar1.showValue = true;
ProgressBar1.increment(10);
Message(ProgressBar1.percentage);
// ProgressBar1.reset();
  • format accepts bars (bar), dunnet (ring), and circus (circle).
  • setRange(min, max) sets the range; value sets progress. percentage is calculated.
  • showValue displays the percentage; increment() advances and reset() returns to the minimum.

More examples

All formats
All formats
import type { WebProgressBarFormat } from '@webrad/runtime';
const formats: readonly WebProgressBarFormat[] = ['bars', 'dunnet', 'circus'];
ProgressBar1.format = formats[1] ?? 'dunnet'; // Ring; bars = bar, circus = circle.
ProgressBar1.setRange(0, 100);
ProgressBar1.value = 65;
ProgressBar1.showValue = true;

Inspector properties

Component options and defaults. Fields without runtime access are configured in the Inspector.

Property / sourceType and optionsDefaultRuntime access
nameName · Identitystring—name
xLeft · Size & positionnumber0x
yTop · Size & positionnumber0y
widthWidth · Size & positionnumber240width
heightHeight · Size & positionnumber28height
itemWidthResponsive width · Responsive sizeFit content grows the item to its widest rendered child and preserves child intrinsic widths; minimum and maximum width remain limits.enumfixed stretch fit-content"fixed"Inspector / configuration
itemHeightResponsive height · Responsive sizeFit content grows the item to its lowest rendered child and preserves child intrinsic heights; minimum and maximum height remain limits.enumfixed stretch fit-content"fixed"Inspector / configuration
itemMinWidthMinimum width · Responsive sizenumber0Inspector / configuration
itemMaxWidthMaximum width · Responsive sizenumbernullInspector / configuration
itemMinHeightMinimum height · Responsive sizenumber0Inspector / configuration
itemMaxHeightMaximum height · Responsive sizenumbernullInspector / configuration
itemGrowGrow · Responsive sizenumber0Inspector / configuration
itemShrinkShrink · Responsive sizeAllows fixed and stretch flow items to yield space. Fit-content keeps its intrinsic size so its children are not compressed.booleantrueInspector / configuration
itemAlignSelfItem alignment · Responsive sizeCross-axis alignment for this item in a row or column. Auto inherits the parent alignment; responsive cross-axis stretch retains its sizing behavior.enumauto start center end stretch"auto"Inspector / configuration
itemHorizontalAnchorHorizontal anchor · Anchors & offsetsenumstart center end stretch"start"Inspector / configuration
itemVerticalAnchorVertical anchor · Anchors & offsetsenumstart center end stretch"start"Inspector / configuration
itemLeftLeft inset · Anchors & offsetsnumber0Inspector / configuration
itemRightRight inset · Anchors & offsetsnumber0Inspector / configuration
itemTopTop inset · Anchors & offsetsnumber0Inspector / configuration
itemBottomBottom inset · Anchors & offsetsnumber0Inspector / configuration
marginMargin · SpacingOuter spacing on all four sides, in pixels. Row and column layouts include this spacing between components.number0margin
marginTopMargin top · SpacingOuter spacing on this side, in pixels. Overrides the shared Margin value.number0Derived from saved propertiesmarginTop
marginRightMargin right · SpacingOuter spacing on this side, in pixels. Overrides the shared Margin value.number0Derived from saved propertiesmarginRight
marginBottomMargin bottom · SpacingOuter spacing on this side, in pixels. Overrides the shared Margin value.number0Derived from saved propertiesmarginBottom
marginLeftMargin left · SpacingOuter spacing on this side, in pixels. Overrides the shared Margin value.number0Derived from saved propertiesmarginLeft
visibleVisible · Behaviorbooleantruevisible
collapseWhenHiddenCollapse when hidden · BehaviorRemoves the component from the layout while it is not visible.booleantruecollapseWhenHidden
enabledEnabled · Behaviorbooleantrueenabled
formatFormat · Appearancebars: horizontal bar; dunnet: donut ring; circus: filled circle.enumbars dunnet circus"bars"format
minMinimum · ProgressFinite progress value. Maximum must exceed minimum; the displayed value is clamped to the range.number0min
maxMaximum · ProgressFinite progress value. Maximum must exceed minimum; the displayed value is clamped to the range.number100max
valueValue · ProgressFinite progress value. Maximum must exceed minimum; the displayed value is clamped to the range.number50value
showValueShow percentage · AppearancebooleantrueshowValue
currentRowBindingsCurrent row · DataBind writable visual values to fields of this repeated row.current-row-bindingsEditor: current-row-bindings[]currentRowBindings

API in code

MemberSignatureAccess
valuevalue: number;Read and write
minmin: number;Read and write
maxmax: number;Read and write
formatformat: WebProgressBarFormat;Read and write
showValueshowValue: boolean;Read and write
percentagereadonly percentage: number;Read-only
onChangeset onChange(handler: WebComponentEventHandler<this> | null);Read and write

setRange

method
setRange(min: number, max: number): void;
Example
ProgressBar1.setRange
ProgressBar1.setRange(0, 100);

increment

method
increment(amount?: number): void;
Example
ProgressBar1.increment
ProgressBar1.increment(5);

reset

method
reset(): void;
Example
ProgressBar1.reset
ProgressBar1.reset();
Inherited members (27)
MemberSignatureAccess
currentRowBindingscurrentRowBindings: readonly WebCurrentRowBinding[];Read and write
elementreadonly element: TElement;Read-only
idreadonly id: string;Read-only
namereadonly name: string;Read-only
visiblevisible: boolean;Read and write
collapseWhenHiddencollapseWhenHidden: boolean;Read and write
enabledenabled: boolean;Read and write
xx: number;Read and write
yy: number;Read and write
widthwidth: number;Read and write
heightheight: number;Read and write
marginOuter spacing on all four sides, in pixels.margin: number;Read and write
marginTopmarginTop: number;Read and write
marginRightmarginRight: number;Read and write
marginBottommarginBottom: number;Read and write
marginLeftmarginLeft: number;Read and write
alignSelfalignSelf: RuntimeLayoutAlignSelf;Read and write
tabIndextabIndex: number;Read and write
backgroundColorbackgroundColor: string;Read and write
colorcolor: string;Read and write
borderColorborderColor: string;Read and write

focus

method
focus(options?: FocusOptions): void;

show

method
show(): void;

hide

method
hide(): void;

bindEvent

method
bindEvent(eventName: string, handler: WebComponentEventHandler<this> | null): () => void;

emit

method
emit(eventName: string, detail?: unknown): boolean;

dispose

method
dispose(): void;

Events

Link methods in Interaction. How to use events.

OnChange

Standard event (Event).

Signature and example
Interaction → OnChange
import type { WebProgressBar } from '@webrad/runtime';
// Copy this method into the page class and link it in Interaction.
class Example {
  public async ProgressBar1Change(
    sender: WebProgressBar,
    event: Event,
  ): Promise<void> {
    console.log(sender.name, event.type);
  }
}

OnClick

Standard event (Event).

Signature and example
Interaction → OnClick
import type { WebProgressBar } from '@webrad/runtime';
// Copy this method into the page class and link it in Interaction.
class Example {
  public async ProgressBar1Click(
    sender: WebProgressBar,
    event: Event,
  ): Promise<void> {
    console.log(sender.name, event.type);
  }
}
WebRAD · Atentor · Read in Markdown
Source code: 6a562bda75a0 (with local changes) · November 7, 2026

Search documentation

Type to search APIs, components, and events.