Re: How to make an action generate html?
Ralf Schlatterbeck <[email protected]> Wed, 14 Feb 2024 18:02:52 +0100
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
[Putting the mailinglist again on CC, I had dropped it in an earlier reply] On Wed, Feb 14, 2024 at 11:50:05AM -0500, John P. Rouillard wrote: > > Ah, I'm sorry I left off one thing. The SVG is interactive. You can > hover over the chart's bars or pie wedges and see additional > info. Also you can click on the components and drill down into the > data. For example if your index page is grouped by status, clicking on > the opn status will bring up an index page that filters to issues that > have open status. > > See https://rouilj.dynamic-dns.net/demo/, scroll to the bottom of the > table and click on "View Chart"/"Show Barchart" for an example. > > An SVG in an img is static. I lose all the ability to interact with > the SVG once it gets wrapped as an img 8-(. AFAIK, to get > interactivity I need to have svg tags directly in the HTML document. > > It might be possible to wrap the SVG in an object or iframe and retain > interactivity but that is unknown at this point. I am hoping the > students will come up with a suitable answer, but I am also looking > into fallbacks. Ah, yes, then you can define a method that is called inside a tag in a template (e.g. tal:block) and return the whole SVG to insert at that point.... I don't think you need an action in that case. Kind regards Ralf -- Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16 Open Source Consulting www: www.runtux.com Reichergasse 131, A-3411 Weidling email: [email protected]