Vaadin 7 embeding Javascript code

Hi All,
I am new to vaadin and enjoying it.

Recently i have a requirment to embed a button from third party. Basically they give us a small piece of code with a javascipr libray link(like addthis) and we have to put that code in our website and a nice Button will be displayed. But i am unable to find a way to do so. In normal html just copy paste of that code works.

I tried CustomLayout and Label but it doesnt work.

This is the code which need to be embeded, which will display a payment button.

Thanks in advance
Ravi

Hi,

have you checked this Wiki page yet? https://vaadin.com/wiki/-/wiki/Main/Integrating%20a%20JavaScript%20library%20as%20an%20extension

There’s also a bit about integrating JavaScript components in the Book of Vaadin: https://vaadin.com/docs/-/part/framework/gwt/gwt-javascript.html

Hope this helps,
Olli