progress-bar
Use the progress-bar component to visually represent a task or process's current status and progression by indicating how much time or work remains until completion.
Core structure | |
---|---|
value | current - determines the current status to be shown in the bar. This can be dynamically set with an expression, e.g. =$count(@ctx.components.packList.state.selected) max - numeric, set the maximum value of the progress bar, e.g., the sales target is 5 new customers a month, making the max: 5 . You can set the maximum dynamically, e.g., using the datasource =$count(@ctx.datasources.checkbox-list) |
Other options | |
---|---|
color | Sets the color of the progress -bar, choose a color from the provided color palette. Default color is black if the property is not specified in the YAML. |
errorText | Add text, string, or expressions to show in text under the progress bar. Text is shown in red to indicate an error with progress. |
helperText | Add text, string, or expressions to guide users by showing text under the progress bar, e.g, Monthly target is $4000. |
size | Choose from extra-large, large, medium, small, tiny, with large being the default if property is not specified in the YAML. |
steps | Numeric with a maximum of 20. Use steps to divide up the bar. By default, the bar is continuous. For example, steps:5 will break down the bar into five equal sections. The higher the number of steps the smaller each bar segment becomes. |
style | isDisabled can be set to true or false. If true the progress-bar is disabled. |
subtitle | value - can add text, string or an expression to show as the subtitle, which is visible under the progress-bar. align - center, left, and right alignment with the default as center if the property is not specified in the YAML. color - specify the color the subtitle text by choosing a color from the provided color palette. position - place the subtitle at the bottom or top. The top is the default if the property is not specified in the YAML. |
title | value - can add text, string or an expression to show as the title, which is visible under the progress-bar. align - center, left and right alignment with the default as center if the property is not specified in the YAML. color - specify the color for the title text by choosing a color from the provided color palette. position - place the title at the bottom or top of the progress-bar. The top is the default if the property is not specified in the YAML. |
Actions | |
---|---|
onPress | Choose from the provided list of available actions, for example, use the go-to action to open a different . The action is triggered when the progress-bar is pressed; e.g., navigate to another . |
- The title, subtitle, and bar can use a color property. Ensure the property is added at the correct YAML level for each.
- The component.progress-bar can only be used on a jig.default.