I want to add a web plugin to my Vaadin website. Normally for such plugins, you add a JavaScript snippet to the <body>
or <head>
sections (depending on the plugin), but we don't have access to that directly in Vaadin development, so was wondering how people do it?
Maybe this is where we use @JavaScript
annotation, referenced here , but that seems like overkill since I don't think I need a component.
@JavaScript
can be used to load any JavaScript file, it doesn't need to be a component.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.