Hello,
I am a little bit confused when I want to integrate a java component with polymer 3.
Is it possible to use a polymer 3 javascript template with a java component extends PolymerTemplate as this example in the documentation?
https://vaadin.com/docs/v12/flow/polymer-templates/tutorial-template-basic.html
If not, is there a short example?
Example of my code:
//////// JAVA
@JavaScript("js/myJavascript.js")
@StyleSheet("node_modules/.../mycss.css")
public class MyComponent extends PolymerTemplate<MyComponentModel> {
public MyComponent(){
}
}
public interface MyComponentModel extends TemplateModel {
}
//////POLYMER 3
import {PolymerElement, html} from '.../...';
import '.../....js';
class MyComponentElement extends PolymerElement {
static get template() {
return html`
<div id="test">
<div id="container"></div>
</div>
`;
}
}
customElements.define('my-element', MyComponentElement);
...
Thank you for your help!