Skip to content

Inline SVG? #32

Open
Open
@jonvitale

Description

@jonvitale

Description

Would it be possible to support inline svg within the html of the Media Box? What is fantastic about this extension is the ability to use variables within the html, allowing text that is formatted according to user selections. I would also like to be able to do something similar with inline svgs. For example, coloring a circle based on some values.

Steps to Reproduce

  1. I tried out this simple code, but in Chrome the svg does not appear:
=
'<div style="font-weight:bold;color: darkgreen;">
Hello, div below?
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
<rect x="0" y="0" width="10" height="10" fill="red" /> 
</svg>
</div>'

Expected behavior

I should see a red rectangle.

Actual behavior

I see the words, "Hello, div below?" but a blank space below.
In Chrome dev tools, in the elements panel, I see the div, but a blank space where the svg should be.

Environment

Qlik Sense, September 2019 release.
Chrome 79.0.3945.130

Operating system

[x ] Windows
[ ] OSX
[ ] Linux

#### Qlik Sense

[ ] Desktop
[ x] Enterprise (Server)


#### Browser

[x ] Chrome
[ ] Firefox
[ ] Internet Explorer
[ ] Edge
[ ] Others: XXX



### Versions

* Extension version: [Version of the extension]
* Browser: 
* Qlik Sense Desktop: [Version of Qlik Sense Desktop]
* Qlik Sense Enterprise: [Version of Qlik Sense Enterprise]
* Operating system: 
* [Other relevant versions]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions