public class WebComponentGenerator extends Object
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Method and Description |
---|---|
static String |
generateModule(WebComponentConfiguration<? extends Component> webComponentConfiguration,
String frontendURI,
boolean compatibilityMode,
String themeName)
Generate web component html/JS for given tag and class.
|
static String |
generateModule(WebComponentExporterFactory<? extends Component> factory,
String frontendURI,
boolean compatibilityMode,
String themeName)
Generate web component html/JS for given exporter factory.
|
public static String generateModule(WebComponentExporterFactory<? extends Component> factory, String frontendURI, boolean compatibilityMode, String themeName)
factory
- web component exporter factory, not null
frontendURI
- the frontend resources URI, not null
compatibilityMode
- true
to generate Polymer2 template, false
to
generate Polymer3 templatethemeName
- the theme defined using Theme
or null
if not
definedpublic static String generateModule(WebComponentConfiguration<? extends Component> webComponentConfiguration, String frontendURI, boolean compatibilityMode, String themeName)
webComponentConfiguration
- web component class implementation, not null
frontendURI
- the frontend resources URI, not null
compatibilityMode
- true
to generate Polymer2 template, false
to
generate Polymer3 templatethemeName
- the theme defined using Theme
or null
if not
definedCopyright © 2024. All rights reserved.