Moving from Vaadin 8 to 10, I encountered a problem, which should be rather trivial to solve. When integrating the webcomponent paper-card, I do not see how to add the elements card-actions and card-content as children inside the component’s own DOM element (setting a property etc. is straightforward, see below).
Thanks for any suggestions!
@Tag(“paper-card”) @HtmlImport(“frontend://bower_components/paper-card/paper-card.html”)
public class PaperCard extends Component{
public PaperCard() {}
public void setHeader(String header) {
this.getElement().setProperty(“heading”, header);
}