Skip to content

ClickElementParams

Parameters for clickElement.

Import:

import type { ClickElementParams } from '@mnaoumov/obsidian-lib/desktop-trusted-input';

Signature:

export interface ClickElementParams

Properties

PropertyTypeDescription
button?MouseButtonThe mouse button to click with.
elementHTMLElementThe element to click. The pointer is moved to its center.

The input goes to the window that owns the element (its ownerDocument.defaultView), so an element in a popout is driven in that popout with no extra parameter.
modifiers?readonly Modifier[]The modifier keys to hold, using Obsidian's Modifier names. 'Mod' resolves per-platform (Cmd on macOS, Ctrl elsewhere).

Links to this page: