Skip to main content

openHoverPopover

openHoverPopover

Opens a popover triggered by mouse hover.

Parameters

  • formPath (string): The path or ID of the form to show in the popover
  • linkArg (any): The argument to pass to the opened form (may be null)
  • callback (function): Callback that receives the result when the popover closes (may be null)
  • options (object, optional): The same option entries as openPopover

Returns: None (void)

Description

Behaves like openPopover, except the background passes mouse events through so the anchor widget stays in its hover state. Moving the mouse between the anchor and the popover doesn't close it immediately — a linger-close delay applies.

openPopover vs openHoverPopover

openPopoveropenHoverPopover
TriggerClickMouse hover
Background event pass-throughfalse by defaulttrue (keeps the anchor hovered)
Linger-close delayNoneYes

Example

$form.openHoverPopover("popovers/stockPreview", null, null,
{ anchor: "row_stock", placement: "bottom-right" });

Related

  • $form.openPopover(formPath, linkArg, callback, options) — regular popover
  • $form.closePopover(result) — closes the popover