Adds one or more style configurations.
Variable number of style configurations.
The instance for chaining.
Resolves the configuration to something that can be fed to JJHE.initShadow() function
The result is cached, so subsequent calls return the same promise. Note: Any changes made to the ShadowMaster instance (via setTemplate/addStyles) after the first call to getResolved() will be ignored.
A promise resolving to the ShadowConfig.
Sets the template configuration.
OptionaltemplateConfig: JJTemplateConfigThe template configuration.
The instance for chaining.
Staticcreate
Manages the resolution of Shadow DOM configuration (template and styles).
Allows building up the configuration and resolving it lazily.
Example