You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.. I have tried to search your site and googled for a solution as of how to set an img as the button text for button.
I end up getting the HTML tag displayed instead in all cases.
I read issue 266 - but I don't see a solution in there?
That was in 2014 where it was stated that adding html as content for a button should be allowed. Is this documented somewhere? If not.. how is it done?
The reason I need this is that we are using the keyboard on a device which doesn't understand some of the unicode chars we have to use..
I tried adding this to my keyboard definition bit: display: { 'space': '<img src="/Gfx/keyboard/space.svg" />' }
but all I get is that exact HTML dispayed as text. What has to be done in order to display the image?
Thanks for a great piece of software which really boost out solution here 👍 :)
The text was updated successfully, but these errors were encountered:
Thanks for the great response time! :D
I tried what you wrote – If I got it right, that solution does not work.
I tried to alter the script a bit and now it works.. I am pretty sure I am not doing it “the right way” – but it works for now
I changed it to this for now.. will look again when I get time.
Maybe you can offer a quick way to do this proper?
Nevertheless – this does work as intended ;)
Hi.. I have tried to search your site and googled for a solution as of how to set an img as the button text for button.
I end up getting the HTML tag displayed instead in all cases.
I read issue 266 - but I don't see a solution in there?
That was in 2014 where it was stated that adding html as content for a button should be allowed. Is this documented somewhere? If not.. how is it done?
The reason I need this is that we are using the keyboard on a device which doesn't understand some of the unicode chars we have to use..
I tried adding this to my keyboard definition bit:
display: { 'space': '<img src="/Gfx/keyboard/space.svg" />' }
but all I get is that exact HTML dispayed as text. What has to be done in order to display the image?
The text was updated successfully, but these errors were encountered: