Renders a live-updating AdminLTE info-box card with a progress bar, displaying a percentage, a numeric value, and a description line.
INFOCARDBAR — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused. Expects the query to return at least one row with three columns: [0] percentage (appends % if absent), [1] middle numeric value, [2] bottom description text. The card polls the server and updates all three elements in place. Returns an HTML string.
RpcGetseries(Data)RPC endpoint called by the polling timer. Re-executes the report query and returns [percentage_value, middle_value, bottom_value] as a list.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
color |
CSS background-color of the card. Supports $param$ placeholders. |
label |
Unused label field (parsed but not rendered). |
width |
CSS width of the card. |
icon |
Ion icon class (default: ion ion-bag). |
title |
Text displayed in the info-box-text span above the value. |
button_text |
Label for the footer link. |
url |
URL for the footer link (default: site base URL). |
refresh |
Polling interval in milliseconds (default: 3000). |
Requires axion.rpc.js. The progress bar width is set from column [0]; if the value does not end with % the character is appended automatically.