Skip to main content

JeModal | <je-modal>

Properties

PropertyAttributeDescriptionTypeDefault
backdropDismissbackdrop-dismissBackdrop will close the modal on click when enabledbooleantrue
destroydestroyOptionally execute a promise before closing begins() => void | Promise<void>undefined
initinitOptionally execute a promise before presentation begins() => void | Promise<void>undefined
openopenOpens and closes modalbooleanfalse
showBackdropshow-backdropWhether or not the backdrop will be visible to the userbooleantrue
sizesizeSize of the modal"lg" | "md" | "sm"'lg'

Events

EventDescriptionType
backdropClickEmits whenever the backdrop is clicked. Does not emit any dataCustomEvent<any>
dismissEmits whenever the modal has finished closing. Emits the role and optional data object passed to the hide() method.CustomEvent<{ role?: string; data?: any; }>
presentEmits whenever the modal has opened. Does not emit any dataCustomEvent<any>

Methods

didDismiss() => Promise<OverlayData>

Returns

Type: Promise<OverlayData>

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
"dialog"
"inner-container"

Built with StencilJS