CustomPopover is a lightweight, reusable, and customizable popover component. It allows developers to display contextual information, action menus, and interactive content inside a floating panel triggered by a user click.
The component uses vanilla JavaScript and CSS without requiring external JavaScript libraries. It supports dynamic positioning, automatic viewport adjustments, and responsive layouts to provide a consistent user experience across different screen sizes.
Lightweight & Reusable: Easily integrate the component into multiple screens and applications.
Click-to-Toggle: Open and close the popover by clicking its trigger.
Dynamic Positioning: Automatically calculates the position relative to the trigger element.
Smart Placement: Adjusts the position when there is insufficient space in the viewport.
Multiple Positions: Supports top, bottom, left, and right placement.
Click Outside to Close: Automatically closes the active popover when clicking outside.
Escape Key Support: Close the active popover using the Escape key.
Single Active Popover: Keeps only one popover open at a time.
Custom Content: Supports text, buttons, icons, links, forms, and other OutSystems widgets.
Responsive Layout: Adapts to different viewport sizes.
No External JavaScript Dependencies: Built using native JavaScript and CSS.
Contextual action menus
User profile dropdowns
Table row actions
Help and information panels
Dashboard quick actions
Custom dropdown menus