Note: This component is in maintenance mode. Suggested alternative: <oj-c-progress-circle>. For help updating an existing application, see the migration section.
Note: This component is not supported in the following themes: Alta
The JET Progress Circle element allows a user to display progress of an operation with a circular meter.
If a developer does not wish to display the exact value, a value of '-1' can be passed in to display an indeterminate value.
If this element is being used to describe the loading process of a particular region of a page, then the aria-describedby
attribute of the region must point to the id of the oj-progress-circle and aria-busy = "true" must be added to the region until the loading is complete.
Migration
Read about current Core Pack limitations to decide when to migrate.
Please make note of the following:
Deprecated APIs are not available in Core Pack, and are not documented in this migration section.
Before trying to migrate to Core Pack run the JET audits and fix any issues before proceeding.
The refresh() method is no longer supported in Core Pack. See the Core Pack Migration Guide for more information.
To migrate from oj-progress-circle to oj-c-progress-circle, you need to revise the import statement and references to oj-progress-circle in your app.
No other changes are needed, as the attributes and methods for the components are the same.
Usage
Signature:
interface ProgressCircleElement
Typescript Import Format
//To typecheck the element APIs, import as below. import { ProgressCircleElement } from "ojs/ojprogress-circle";
//For the transpiled javascript to load the element's module, import as below import "ojs/ojprogress-circle";
Note: Application logic should not interact with the component's properties or invoke its methods
until the BusyContext indicates that the component is ready for interaction.
Progress circle track width applied to large sizing progress circles
Attributes
max :number
The maximum allowed value. The element's max attribute is used if it
is provided, otherwise the default value of 100 is used.
Default Value:
100
Names
Item
Name
Property
max
Property change event
maxChanged
Property change listener attribute (must be of type function, see Events and Listeners for additional information.)
on-max-changed
size :"sm"|"md"|"lg"
Specifies the size of the progress circle.
Supported Values:
Value
Description
sm
small progress circle
md
medium progress circle (default, if unspecified)
lg
large progress circle
Default Value:
'md'
Names
Item
Name
Property
size
Property change event
sizeChanged
Property change listener attribute (must be of type function, see Events and Listeners for additional information.)
on-size-changed
value :number
The value of the Progress Circle. The element's value attribute is used if it
is provided, otherwise the default value of 0 is used. For indeterminate Progress, set value to -1.
Any other negative value will default to 0.
Default Value:
0
Names
Item
Name
Property
value
Property change event
valueChanged
Property change listener attribute (must be of type function, see Events and Listeners for additional information.)