Renders an auto-updating Bootstrap progress bar whose value is fetched from a SQL query via RPC on a configurable interval.
PROGRESSBAR — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Params are unused. Returns an HTML fragment containing a Bootstrap .progress bar and a polling <script> block. The bar's aria-valuenow and width are updated on each poll cycle.
RpcGetseries(Data)Executes self._Query and returns a single scalar value representing the current progress value.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
verticle |
"true" adds the .vertical class to the progress container |
size |
"sm", "xs", or "xxs" — appends progress-sm etc. to the container |
striped |
"true" adds progress-bar-striped |
animated |
"true" adds progress-bar-animated |
color |
Bootstrap bg class (e.g. "bg-success") or hex colour string |
valuemin |
Minimum scale value (default: "0") |
valuemax |
Maximum scale value (default: "100") |
height |
CSS height string applied to the container |
label |
"percentage" shows value%, "absolute" shows prefix + value + suffix, any other string is shown as a static label |
prefix / suffix |
Text prepended/appended to the absolute label |
label_style |
Inline CSS applied to the label <div> |
refresh |
Polling interval in ms (default: 3000) |
Loads axion.rpc.js. Uses shortuuid to generate unique element IDs per instance.