pl.wendigo.chrome.domain.dom / CopyToRequest

CopyToRequest

data class CopyToRequest (source)

Represents request frame that can be used with DOM.copyTo method call.

Creates a deep copy of the specified node and places it into the target container before the given anchor.

Constructors

<init>

CopyToRequest(nodeId: NodeId, targetNodeId: NodeId, insertBeforeNodeId: NodeId? = null)

Represents request frame that can be used with DOM.copyTo method call.

Properties

insertBeforeNodeId

val insertBeforeNodeId: NodeId?

Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId).

nodeId

val nodeId: NodeId

Id of the node to copy.

targetNodeId

val targetNodeId: NodeId

Id of the element to drop the copy into.