-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monaco-editor usage in vaadin java project #23
Comments
Hey @mkit This is a polymer based webcomponent. It is not a vaadin component. Aka u cannot use it inside a Java application - there are no Java bindings to this webcomponent. U can only use it as a native web application - i.e. javascript/typescript/html ecosystem. Vaadin UI components are webcomponents (similar to this) but they also wrap a Java lib over the webcomponent so that u can use it in ur java application. Frontend dev on the npm ecosystem can use vaadin ui components like any regular webcomponent but vaadin java dev cannot use regular webcomponent like vaadin components w/o some additional work to convert it to a vaadin component with java bindings. Tldr. This is not a vaadin component and does not have java bindings, so u can't use this in a Java application. |
Ok. I went and have a look at how pple use vaadin. U will need to do something like this. Using vaadin java methods to mimic what we would do in javascript. Let me see if I can find a better example for u. |
https://vaadin.com/docs/flow/web-components/integrating-a-web-component.html U need to do this first. But because this is polymer 2 instead of 3 (I haven't got time to update it), it is based on bower rather than npm. But this shld not be an issue, u can do a normal js script import for all the bower packages instead of using bower. |
U can read more about bower here. U can refer to this for the bower based webcomponent But support will drop after v14 thou. |
Thanks a lot @eterna2 |
Hi, I am new to Vaadin but would like to use this component in my Vaadin Java project. Can you advise me on how to do it?
Thank you in advance for your reply.
The text was updated successfully, but these errors were encountered: