Interface WebComponentUI.ThemeAttributesJs
- All Superinterfaces:
Serializable
- Enclosing class:
WebComponentUI
How the attributes a theme asks for reach every exported web component on
an embedding page, as a JavaScript definition for
Page.executeJs(Class).- Since:
- 25.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetAttributes(String tag, tools.jackson.databind.node.ObjectNode attributes) Sets the given attributes on every element of the given tag.
-
Method Details
-
setAttributes
@JsExpression("document.querySelectorAll($0).forEach(element => Object.entries($1).forEach(([name, value]) => element.setAttribute(name, value)));") void setAttributes(String tag, tools.jackson.databind.node.ObjectNode attributes) Sets the given attributes on every element of the given tag.- Parameters:
tag- the tag of the elements to set the attributes onattributes- the attributes to set, by name
-