Skip to content

HoverElementParams

Parameters for Lib.hoverElement.

Import:

import type { HoverElementParams } from 'obsidian-integration-testing';

Signature:

export interface HoverElementParams

Properties

PropertyTypeDescription
elementHTMLElementThe element to hover. The pointer is moved to its center. This is a live renderer DOM node — the callback runs in-renderer, so no cross-process serialization is needed (same as TypeIntoEditorParams.editor).

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.

Links to this page: