CxJS

ProgressBar

import { ProgressBar } from 'cx/widgets'; Copied

The ProgressBar accepts values between 0 and 1 to indicate the state of progress.

<LabelsTopLayout>
  <Slider
    value={m.progress}
    minValue={0}
    maxValue={1}
    step={0.01}
    label="Progress:"
  />
  <LabelsTopLayoutCell style="vertical-align: middle">
    <ProgressBar
      value={m.progress}
      text={format(m.progress, "p;0")}
      style="height: 20px"
    />
  </LabelsTopLayoutCell>
</LabelsTopLayout>
 

Configuration

PropertyTypeDescription
valuenumberProgress value between 0 and 1. Default is 0.
textstringAnnotation text displayed on the progress bar.
disabledbooleanSet to true to make the progress bar appear disabled.
baseClassstringBase CSS class. Default is progressbar.
classNamestringAdditional CSS class to apply.
stylestring | objectAdditional styles to apply.