Renders a single Bootstrap badge pill whose label and colour are determined by mapping a status code through a configurable lookup table.
StatusPill — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 — the status code string to render (e.g. "COMPLETED", "FAILED").
Returns a <span class="badge ..."> HTML element. If the status code is not found in the map, the label defaults to a title-cased version of the code and the colour defaults to secondary.
Options read from self._Options JSON.
| Key | Effect |
|---|---|
map |
Dict mapping status codes to {label, colour} objects. colour must be a Bootstrap contextual class name (e.g. "success", "danger", "primary") |
size |
Badge size: "sm", "md" (default), or "lg" |
rounded |
If true (default), adds badge-pill class for a pill shape |
ObjReportVisitCard references this report by its status_reportcode option to render status cells.badge-{colour} classes.