Skip to main content

JePopover | <je-popover>

Properties

PropertyAttributeDescriptionTypeDefault
arrowarrowRenders an arrow pointing to the triggerbooleantrue
arrowPaddingarrow-paddingThe padding between the arrow and the edges of the popover. Useful if you change the border-radius of the popovernumber6
backdropDismissbackdrop-dismissBackdrop will dismiss the popover on click when enabledbooleantrue
destroydestroyExecute a callback after the popover has dismissed() => void | Promise<void>undefined
dismissOnClickdismiss-on-clickPopover will automatically dismiss itself when something is clicked in the popover when enabledbooleanfalse
initinitExecute a callback before the popover starts presenting() => void | Promise<void>undefined
matchWidthmatch-widthIf the popover should match the width of the trigger elementbooleanfalse
offsetXoffset-xHorizontal offset used when auto positioning the popover contentnumber0
offsetYoffset-yVertical offset used when auto positioning the popover contentnumber10
openopenOpens/closes the popoverbooleanfalse
placementplacementWhere the popover should be placed"bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"undefined
positionStrategyposition-strategyIf the popover should position itself using the mouse event or the triggerElement."click" | "element"'element'
triggerActiontrigger-action"click" | "context-menu" | "hover"'click'

Events

EventDescriptionType
dismissEmits when the popover is closedCustomEvent<{ role?: string; data?: any; }>
presentEmits when the popover is openedCustomEvent<any>
readyEmits when the popover has completed it's initial renderCustomEvent<any>
willDismissEmits before the popover starts dismissingCustomEvent<any>
willPresentEmits before the popover starts openingCustomEvent<any>

Methods

hide(role?: string, data?: any) => Promise<void>

Parameters

NameTypeDescription
rolestring
dataany

Returns

Type: Promise<void>

show() => Promise<void>

Returns

Type: Promise<void>

Shadow Parts

PartDescription
"arrow"
"content"
"content-container"

Dependencies

Used by

Graph


Built with StencilJS