Skip to content
angulux
@anguless/angulux/progressbar

ProgressBar

1 declaration3 demosprogressbar.md
import
import { ProgressBarModule } from '@anguless/angulux/progressbar';

Basic

The value property drives the bar, and the label is shown by default.

60%
<div style="width: 100%">    <agl-progressBar [value]="value" aria-label="Upload progress" /></div>

Indeterminate

Indeterminate mode is for work whose duration is not known.

<div style="width: 100%">    <agl-progressBar mode="indeterminate" aria-label="Loading" [style]="{ height: '6px' }" /></div>

Dynamic

Binding to a signal is enough; the bar follows whatever the value does.

20%
<div style="width: 100%; display: grid; gap: 0.75rem; justify-items: center">    <agl-progressBar [value]="value()" aria-label="Upload progress" />    <agl-button label="Advance" (onClick)="advance()" /></div>

API

Generated from the committed corpus, which check:corpus holds to the built library.

ProgressBar

componentagl-progressBar, agl-progressbar, agl-progress-bar

ProgressBar is a process status indicator.

InputTypeDefaultDescription
valuenumber | undefinednot documentedCurrent value of the progress.
showValuebooleannot documentedWhether to display the progress bar value.
styleClass
deprecated — since v20.0.0, use `class` instead.
string | undefinednot documentedStyle class of the element.
valueStyleClassstring | undefinednot documentedStyle class of the value element.
unitstringnot documentedUnit sign appended to the value.
mode'determinate' | 'indeterminate' 'determinate' Defines the mode of the progress
colorstring | undefinednot documentedColor for the background of the progress.
Template slotDescription
<ng-template #content>Template of the content.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. Keys become attributes, and a key that names a DOM property is also assigned to that property. Values the browser would execute go through Angular's sanitizer first, as in a template binding: markup in `innerHTML`, `outerHTML` and `srcdoc`, and URLs in `href`, `src`, `action`, `formaction` and `xlink:href`. To write one of those unsanitized on purpose, pass a `DomSanitizer.bypassSecurityTrustHtml` or `bypassSecurityTrustUrl` value. An `on*` key must be a function, and any other value for it is ignored. Keys themselves are applied as given, so let data from users choose values, never keys.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.