Vaadin 7/8 remove Js scripts from context HTML
Vaadin 7/8 remove Js scripts from context HTML
I am working on a Custom library js in vaadin 8/7 and for load js on context, I am using class Abstract JavaScript with annotation @JavaScript, but i need remove js after change menu context. Is there any method to remove the scripts by name ?
My code:
@StyleSheet("templateMaker/css/bootstrap.min.css", "templateMaker/css/postercloudpromo.css")
@JavaScript("DgoTemplateConnectorJsHelper.js", "templateMaker/dist/jquery-3.3.1.min.js", "templateMaker/dist/webfont.min.js", "templateMaker/dist/fabric.min.js", "templateMaker/dist/jspdf.min.js", "templateMaker/dist/JsBarcode.all.min.js", "templateMaker/dist/qrcode/qrious.min.js", "templateMaker/dist/fontFaceObserver.min.js", "templateMaker/js/generatebarcodes.js", "templateMaker/dist/popper/popper.min.js", "templateMaker/dist/jscolor.js", "templateMaker/js/controller.js")
public class DgoTemplateConnectorJsHelper extends AbstractJavaScriptComponent
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.