10-06-2020 14:10
10-06-2020 14:10
How can I get a reference to the image of an Icon Button so I can change the image via JavaScript?
10-18-2020 20:09 - edited 10-18-2020 20:16
10-18-2020 20:09 - edited 10-18-2020 20:16
Did you figure out how to do it?
EDIT: It's just simple as:
<use id="my-button" href="#icon-button" class="medium-button application-fill my-btn" />
And then
document.getElementById('my-button').image = "file.png"
10-19-2020 13:05
10-19-2020 13:05
I'll give that a try, thanks