Renders a scrolling news ticker panel using the Bootstrap News jQuery plugin.
TICKER — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
No parameters are used. Iterates over self.data_list, expecting each row to contain (image_url, image_width, text, link_url, link_text). Returns an HTML block with a Bootstrap panel containing a <ul class='news'> list and the bootstrapNews initialisation script.
If self._Options is non-empty, its raw content is passed directly as the bootstrapNews({...}) options object, overriding the defaults. Default options when _Options is empty:
| Option | Default |
|---|---|
newsPerPage |
4 |
navigation |
true |
autoplay |
true |
direction |
'up' |
animationSpeed |
'normal' |
newsTickerInterval |
4000 ms |
pauseOnHover |
true |
jquery.bootstrap.newsbox.min.js to be loaded; the script is registered via self.Parent.add_resource_script.self._Title.