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 null
frontendURI
- the frontend resources URI, not null
compatibilityMode
- 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 null
frontendURI
- the frontend resources URI, not null
compatibilityMode
- true
to generate Polymer2 template, false
to
generate Polymer3 templateCopyright © 2020. All rights reserved.