A linear progress indicator used to express unspecified wait time or display the length of a process.
- Element
-
igc-linear-progress
- Slots
-
default— Custom label content. A slotted element replaces the default label.
- CSS Parts
-
base— The wrapper of the linear progress. -
track— The linear progress track area. -
fill— The linear progress indicator area. -
secondary— Added to the second fill element, which the indeterminate animation uses. -
striped— Added to the fill parts when the progress is striped. -
label— The linear progress label. -
value— The linear progress label value. -
indeterminate— Added to the fill parts while the progress is indeterminate. -
primary— Added to the fill parts when the variant is `primary`. -
danger— Added to the fill parts when the variant is `danger`. -
warning— Added to the fill parts when the variant is `warning`. -
info— Added to the fill parts when the variant is `info`. -
success— Added to the fill parts when the variant is `success`. -
counter— Added to the label value while it shows the default percentage text. -
fraction— Added to the label value when the percentage has a fractional part.
Properties
Section titled "Properties"animationDuration
Section titled "animationDuration"Inherited from: IgcProgressBaseComponent
The duration of the fill animation in milliseconds.
animationDuration: number = 500 Defined in src/components/progress/base.ts:63
hideLabel
Section titled "hideLabel"Inherited from: IgcProgressBaseComponent
Whether the default label is hidden.
hideLabel: boolean = false Defined in src/components/progress/base.ts:78
indeterminate
Section titled "indeterminate"Inherited from: IgcProgressBaseComponent
Whether the progress is indeterminate. An indeterminate progress has no value and does not show the default label.
indeterminate: boolean = false Defined in src/components/progress/base.ts:71
labelAlign
Section titled "labelAlign"The position for the default label of the control.
labelAlign: LinearProgressLabelAlign = 'top-start' labelFormat
Section titled "labelFormat"Inherited from: IgcProgressBaseComponent
Format string for the default label of the control. Placeholders: {0} - current value of the control. {1} - max value of the control.
labelFormat: string Defined in src/components/progress/base.ts:88
Inherited from: IgcProgressBaseComponent
The maximum value of the control.
max: number = 100 Defined in src/components/progress/base.ts:42
striped
Section titled "striped"Whether the fill of the control is striped.
striped: boolean = false value
Section titled "value"Inherited from: IgcProgressBaseComponent
The value of the control.
value: number = 0 Defined in src/components/progress/base.ts:49
variant
Section titled "variant"Inherited from: IgcProgressBaseComponent
The variant of the control.
variant: StyleVariant = 'primary' Defined in src/components/progress/base.ts:56
styles
Section titled "styles"Array of styles to apply to the element. The styles should be defined using the css tag function, via constructible stylesheets, or imported from native CSS module scripts.
Note on Content Security Policy:
Element styles are implemented with <style> tags when the browser doesn't
support adopted StyleSheets. To use such <style> tags with the style-src
CSP directive, the style-src value must either include 'unsafe-inline' or
nonce-<base64-value> with <base64-value> replaced be a server-generated
nonce.
To provide a nonce to use on generated <style> elements, set
window.litNonce to a server-generated nonce in your page's HTML, before
loading application code:
``
styles: CSSResult[]