Open eviltik opened 11 months ago
Thank you for using Tweakpane!
Using innerHTML
should be avoided due to its potential security risks. What do you think about adding a new property icon: HTMLElement
instead?
The security risk is minor because tabs title are defined by the developer. But tabs title (or icons) can come from a database or outside too, who know's ... so ...
Agree with an icon:HTMLElement
implementation !
Hi !
Currently, addTab only support
title
attribute, which is pushed into the Dom as innerText (i think), not innerHTML. So we can't put our title in a span or use google material symbols icons without a little hack.Hack:
It should be great to be able to set HTML directly in pages elements, i.e
What do you think ?
I was using DAT.gui, then lil-gui, now definitively switched to tweakpane. Great job !