Interface WebComponentBootstrapHandler.StylesheetJs
- All Superinterfaces:
Serializable
- Enclosing class:
WebComponentBootstrapHandler
@JsDefinition
public static interface WebComponentBootstrapHandler.StylesheetJs
extends Serializable
How a stylesheet is added to the document of an embedding page, as a
JavaScript definition for
Page.executeJs(Class).
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStylesheet(String href) Adds a stylesheet link to the head of the document.
-
Method Details
-
addStylesheet
@JsExpression("const link = document.createElement(\'link\');link.rel = \'stylesheet\';link.type = \'text/css\';link.href = $0;document.head.appendChild(link);") void addStylesheet(String href) Adds a stylesheet link to the head of the document.- Parameters:
href- the address of the stylesheet
-