GitHub user mistercrunch added a comment to the discussion: Using Superset’s 
internal icon set (or any other icon set) in custom HTML/CSS (table 
visualizations, dashboard templates)?

The visualization plugins can use them for sure (importing them in 
javascript/react), but as far as using inside a data table along with your 
data, I don't think think that's possible to reference them as they get 
compiled as svg by webpack. You could hack and incorporate the source svg, but 
that wouldn't be a reference, it'd an actual copy of the svg. Not sure if we 
allow svg tags when sanitizing the html content in tables and elsewhere (we 
sanitize with an allow-list of things like <img>, <a>, ...). Maybe a hack with 
<img> squeezing in the svg idk.

Maybe jinja hacks are possible too, so at least it's not hard-coded in each 
chart, through `JINJA_CONTEXT_ADDONS` maybe, where you'd reference copy/source 
of the icons there. 

Can probably reference icons anywhere on the web if your TALISMAN / CORS 
settings allow.

GitHub link: 
https://github.com/apache/superset/discussions/35275#discussioncomment-14504636

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to