pl.wendigo.chrome.api.dom / CopyToRequest

CopyToRequest

data class CopyToRequest (source)

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

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

Link
DOM#copyTo method documentation.

See Also

DOMOperations.copyTo

Constructors

<init>

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

Represents request frame that can be used with DOM#copyTo operation 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.