Yoram1
(Yoram Halberstam)
1
Hi,
I want to put a linked in follow button.
<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script> <script type="IN/FollowCompany" data-id="5243850" data-counter="top"></script>
I wonder if there is an extention that would allow this?
Yoram
Johannes10
(Johannes Häyry)
2
I don’t know about an extension, but it’s pretty easy to include a JavaScript library as an extension.
https://vaadin.com/wiki/-/wiki/Main/Integrating%20a%20JavaScript%20library%20as%20an%20extension
Don’t worry about the “this is old content” warning. It’s still relevant. Other option is to check AbstractJavaScriptComponent.
Yoram1
(Yoram Halberstam)
3
So I create the JavaScript in a .js (where?) in my app and I add the JavaScript Extension. Can I insert it in my layout? I’m new to Vaadin. 
Yoram1
(Yoram Halberstam)
4
I didit, the problem is that it is not .js that I need but a place to put the script tags. Someone somwhere must have put a linked in button?