Renders a Mermaid slideshow that cycles through multiple diagrams in sequence, advancing on a timer or on click, with Iconify icon pack support.
MERMAIDSLIDE — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Params are unused. All rows in self.data_list are loaded as slide content (each row's first element is a Mermaid graph string). The first slide is displayed initially. Subsequent slides are cycled by calling setMermaid and incrementing a modular index. Returns an HTML fragment.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
refresh |
Auto-advance interval in ms; if set, slides advance automatically via setInterval |
width |
CSS width of the diagram container (default: "100%") |
height |
CSS height of the diagram container (default: "100%") |
When refresh is not set, clicking the diagram advances to the next slide.
Loads mermaid.min.js and axion.rpc.js as local resources. Registers Iconify icon packs (logos, vscode-icons, mingcute) from unpkg at startup. Mermaid is initialised with startOnLoad: true and flowchart zoom/drag enabled.