Interface AbstractNodeStateProvider.AttachExistingElementJs

All Superinterfaces:
Serializable
Enclosing class:
AbstractNodeStateProvider

@JsDefinition public static interface AbstractNodeStateProvider.AttachExistingElementJs extends Serializable
Asks the client to find an existing child element for a server-side element, 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 Type
    Method
    Description
    void
    attachExistingElement(Node<?> parent, Element previousSibling, String tagName, int id)
    Looks for an element with the given tag name among the children of the parent, after the previous sibling, and reports the outcome to the server for the node with the given id.
  • Method Details

    • attachExistingElement

      @JsExpression("$executionContext.attachExistingElement($0, $1, $2, $3);") @JsWithExecutionContext void attachExistingElement(Node<?> parent, Element previousSibling, String tagName, int id)
      Looks for an element with the given tag name among the children of the parent, after the previous sibling, and reports the outcome to the server for the node with the given id.
      Parameters:
      parent - the parent element or shadow root to look in
      previousSibling - the sibling the element comes after, or null to look from the first child
      tagName - the tag name of the element to look for
      id - the id of the node that represents the element on the server