Renders a live-updating AdminLTE small-box info card displaying a single scalar value fetched via RPC.
INFOCARD — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused. The initial card value is taken from data_list[0][0]. The card polls the server on an interval and updates its displayed value in place. Returns an HTML string containing the card markup and polling script.
RpcGetseries(Data)RPC endpoint called by the card's polling timer. Executes self._Query (after text processing) via sql_get_value and returns the scalar result directly.
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 (e.g. "300px"). |
icon |
Ion icon class for the card icon (default: ion ion-bag). |
subtitle |
Text displayed below the main value. |
button_text |
Label for the footer link button. |
url |
URL for the footer link (default: site base URL). Supports $param$ placeholders. |
refresh |
Polling interval in milliseconds (default: 3000). |
Requires axion.rpc.js. Uses shortuuid to generate unique element IDs per render so multiple instances can coexist on one page.