Search.../

style

Gets an object containing information about the progress bar's styles.

Description

The following styles can be used with progress bars:

Note: Not all styles can be used on all progress bar designs. To determine which styles work with a specific progress design, go to the Progress Design panel in the Editor, choose a design, and click Customize Design. The design options that you see in the Progress Design panel for your particular box are the styles you can use in your code.

Type:

StyleRead Only

Was this helpful?

Set the background color

Copy Code
1$w("#myElement").style.backgroundColor = "rgba(255,0,0,0.5)";
Get the background color

Copy Code
1let bgColor = $w("#myElement").style.backgroundColor;