Popover is a non-modal dialog that floats relative to another element. It's commonly used for displaying additional rich content on top of something. Popovers can alter their floating position to avoid overflowing the page.
Popovers should:
Escape
key should dismisses the popover if it is visible and restore focus to the trigger element.Popovers should not:
targetRef
to tell EzPopover about the element that the popover should position next to.showArrow
(optional) to positions an inner element of the popover so it appears centered relative to the reference element, usually the triangle or caret that points toward the reference element. EzPopover will automatically pick up an element decorated with the data-popper-arrow attribute
and position it within the popover.matchWidth
(optional) to size the popover relative to the width of the target element.placement
(optional) to position the popover relative to the target element. Defaults to "bottom"
, accepts: "top-start"
| "top-end"
| "bottom-start"
| "bottom-end"
| "right-start"
| "right-end"
| "left-start"
| "left-end"
| "top"
| "bottom"
| "right"
| "left"
.shouldCloseOnBlur
(optional) to automatically call onClose
when the user clicks away from the popover.onClose
(optional) to be notified when the popover closes.