What is the best way to execute javascript for a custom widget in Vaadin 8?

Home / Uncategorized / What is the best way to execute javascript for a custom widget in Vaadin 8?

Question:
I have a custom widget that needs further initialization after the DOM elements have been created. What is the best way to do this? Assume that the javascript is in a js file.

DOM ready can’t be used because Vaadin is a single page application.

@Javascript annotation loads the js file before the DOM has been fully created.


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *