Renders a Splide.js carousel from query result rows, supporting images, HTML content, and plain text slides.
SPLIDEJS — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused. Each row in data_list is a single value determining slide content: if it starts with http or /res it is rendered as an <img>; if it is a JSON object (starts with {, ends with }) it is processed through process_text; otherwise it is used as raw HTML. Returns an HTML string.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
theme |
Splide CSS theme: "normal" (default), "seagreen", or "skyblue". |
anchor |
Image sizing: "width" (100% wide, auto height) or "height" (100% tall, auto width). |
border |
"true" to draw a border around the carousel track. |
border-width |
Border width (default: 2px solid). |
border-colour |
Border colour (default: #000000). |
rounded-corners |
"true" to apply border-radius. |
border-radius |
Border radius value (default: 25px). |
background |
CSS background of the carousel track. |
min-width |
CSS min-width of the track. |
max-width |
CSS max-width of the track. |
drag |
Splide drag option. |
width |
Splide carousel width. |
height |
Splide carousel height. |
autoplay |
Enable autoplay (true/false). |
interval |
Autoplay interval in milliseconds. |
rewind |
Enable rewind (true/false). |
speed |
Transition speed in milliseconds. |
rewindSpeed |
Rewind speed in milliseconds. |
direction |
Slide direction ("ltr", "rtl", "ttb"). |
Loads Splide.js 4.1.4 from jsDelivr CDN. Drag is disabled by default in the initialisation call; the drag option overrides this when specified.