ScrollIntoViewIfNeededRequest

@Serializable
data class ScrollIntoViewIfNeededRequest(val nodeId: NodeId? = null, val backendNodeId: BackendNodeId? = null, val objectId: RemoteObjectId? = null, val rect: Rect? = null)

Request object containing input parameters for the DOMDomain.scrollIntoViewIfNeeded command.

Constructors

Link copied to clipboard
constructor(nodeId: NodeId? = null, backendNodeId: BackendNodeId? = null, objectId: RemoteObjectId? = null, rect: Rect? = null)

Types

Link copied to clipboard
class Builder

A builder for ScrollIntoViewIfNeededRequest, which allows setting the optional parameters of the DOMDomain.scrollIntoViewIfNeeded command via a lambda.

Properties

Link copied to clipboard

Identifier of the backend node.

Link copied to clipboard

Identifier of the node.

Link copied to clipboard

JavaScript object id of the node wrapper.

Link copied to clipboard
val rect: Rect?

The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.