Skip to content

ClickElementParams

Parameters for clickElement.

Import:

import type { ClickElementParams } from 'obsidian-dev-utils/obsidian/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.
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: