Skip to content

VM Code SDK v2 / ClickOptions

Type alias: ClickOptions ​

ClickOptions: object & SelectOptionOptions

Type declaration ​

button? ​

optional button: "left" | "right" | "middle"

Defaults to left.

clickCount? ​

optional clickCount: number

defaults to 1. See [UIEvent.detail].

delay? ​

optional delay: number

Time to wait between mousedown and mouseup in milliseconds. Defaults to 0.

modifiers? ​

optional modifiers: ("Alt" | "Control" | "Meta" | "Shift")[]

Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores current modifiers back. If not specified, currently pressed modifiers are used.

position? ​

optional position: object

A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the element.

position.x ​

x: number

position.y ​

y: number