public class WebComponentGenerator extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
generateModule(WebComponentConfiguration<? extends Component> webComponentConfiguration,
String frontendURI,
boolean compatibilityMode)
Generate web component html/JS for given tag and class.
|
static String |
generateModule(WebComponentExporterFactory<? extends Component> factory,
String frontendURI,
boolean compatibilityMode)
Generate web component html/JS for given exporter factory.
|
public static String generateModule(WebComponentExporterFactory<? extends Component> factory, String frontendURI, boolean compatibilityMode)
factory - web component exporter factory, not nullfrontendURI - the frontend resources URI, not nullcompatibilityMode - true to generate Polymer2 template, false to
generate Polymer3 templatepublic static String generateModule(WebComponentConfiguration<? extends Component> webComponentConfiguration, String frontendURI, boolean compatibilityMode)
webComponentConfiguration - web component class implementation, not nullfrontendURI - the frontend resources URI, not nullcompatibilityMode - true to generate Polymer2 template, false to
generate Polymer3 templateCopyright © 2020. All rights reserved.