openHoverPopover
openHoverPopover
Opens a popover triggered by mouse hover.
Parameters
formPath(string): The path or ID of the form to show in the popoverlinkArg(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 asopenPopover
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
openPopover | openHoverPopover | |
|---|---|---|
| Trigger | Click | Mouse hover |
| Background event pass-through | false by default | true (keeps the anchor hovered) |
| Linger-close delay | None | Yes |
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