Skip to main content

JeDrawer | <je-drawer>

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
sidesideSide of the screen where the drawer will be displayed"left" | "right"'left'

Events

EventDescriptionType
backdropClickEmits whenever the backdrop is clicked. Does not emit any dataCustomEvent<any>
dismissEmits whenever the drawer has finished closing. Emits the role and optional data object passed to the hide() method.CustomEvent<{ role?: string; data?: any; }>
presentEmits whenever the drawer has opened. Does not emit any dataCustomEvent<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
"dialog"
"inner-container"

Built with StencilJS