Interface ElementWithPart
@JsType(isNative=true,
namespace="<global>",
name="HTMLElement")
public interface ElementWithPart
A JsType interface representing a native JavaScript
HTMLElement that
includes a part attribute. This allows Java code to interact with the
part property of an element, which is used for styling components
within a shadow DOM.- See Also:
-
Method Summary
-
Method Details
-
getPart
Gets the part names of the element. The returnedDOMTokenListis a live representation of the 'part' attribute of the element.- Returns:
- a
DOMTokenListof the part names
-