Package com.vaadin.flow.dom.impl
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 TypeMethodDescriptionvoidattachExistingElement(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 inpreviousSibling- the sibling the element comes after, ornullto look from the first childtagName- the tag name of the element to look forid- the id of the node that represents the element on the server
-