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

    Modifier and Type
    Method
    Description
    Gets the part names of the element.
  • Method Details

    • getPart

      @JsProperty DOMTokenList getPart()
      Gets the part names of the element. The returned DOMTokenList is a live representation of the 'part' attribute of the element.
      Returns:
      a DOMTokenList of the part names