description |
---|
Learn how to use the Progress widget to visually track the progress of tasks or processes in your application. |
This page provides information on using the Progress widget, which is used to visualize the progression of specific operations and user or system-triggered actions.
These properties are customizable options present in the property pane of the widget, allowing users to modify the widget according to their preferences.
Enables the widget to enter an infinite loading state, which is beneficial when the progress values cannot be determined. For instance, this property can be enabled for queries that take a longer time to execute.
Allows you to select the desired format for the progress bar.
Options:
- Circular
- Linear
Specify the value of the progress indicator (in percentage). You can also use values retrieved from queries or JavaScript functions within the mustache operator {{}}
.
Specify the number of steps to break down the progress bar into multiple parts with fixed progress percentages. This property only supports positive integers.
Controls the visibility of the widget. If you turn off this property, the widget would not be visible in View Mode. Additionally, you can use JavaScript by clicking on JS next to the Visible property to conditionally control the widget's visibility.
For example, if you want to make the widget visible only when the user selects "Yes" from a Select widget, you can use the following JavaScript expression:
{{Select1.selectedOptionValue === "Yes"}}
Control the display of the evaluated percentage as a number along with the progress in the widget.
Specifies whether the circular progress bar should animate in a counterclockwise direction. This option is only available when the Circular progress Type is selected.
Style properties allow you to change the look and feel of the widget.
Specify the color of the progress bar. It accepts CSS color values and can also be programmatically modified using JavaScript functions.
These properties are not available in the property pane, but can be accessed using the dot operator in other widgets or JavaScript functions. For instance, to get the visibility status, you can use Progress1.isVisible
.
Indicates the current progress of the progress bar as a percentage.
Example:
{{Progress1.progress}}
The isVisible
property indicates the visibility state of a widget, with true indicating it is visible and false indicating it is hidden.
Example:
{{Progress1.isVisible}}
The methods provided by the widget allow users to dynamically update and manipulate its properties, facilitating the creation of dynamic and interactive applications without the need for manual property modifications.
These methods are asynchronous and return a Promise. You can use the .then()
block to ensure execution and sequencing of subsequent lines of code in Appsmith.
Sets the visibility of the widget.
Example:
Progress1.setVisibility(true)
Sets the progress value of the Progress widget.
Example:
Progress1.setProgress(50)