Modals (Dialog Component)

Basic usage:

Dialog is a container to display content in an overlay window.

Basic:
Nested Modals:
Position:
Maximizable:
Modal width Popover:

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
appendToA valid query selector or an HTMLElement to specify where the dialog gets attached. Special keywords are "body" for document body and "self" for the element itselfstring'body' | 'self' | string | undefinedbody
visibleSpecifies the visibility of the dialog.booleantrue | falsefalse
maximizableWhether the dialog can be displayed full screen.booleantrue | falsefalse
positionPosition of the dialog.string"center", "top", "bottom", "left", "right", "top-left", "top-right", "bottom-left" or "bottom-right"center
headerTitle content of the dialog.stringstring | undefined---
footerFooter content of the dialog.stringstring | undefined---
ariaCloseLabelAria label of the close icon.String---close
closableAdds a close icon to the header to hide the dialog.Booleantrue | falsetrue
closeOnEscapeSpecifies if pressing escape key should hide the dialog.Booleantrue | falsetrue
contentClassStyle class of the content section.String------
contentStyleStyle of the content section.String, Object---null
baseZIndexBase zIndex value to use in layering.Number---0
dismissableMaskSpecifies if clicking the modal background should hide the dialog.Booleantrue | falsetrue
breakpointsObject literal to define widths per screen size. Ex: { '960px': '75vw', '640px': '100vw' }Objecttrue | falseundefined
widthDefault width of dialog windowString | Number---60vw

Slots

NameDescription
defaultContent of the Dialog
headerHeader of the Dialog
footerFooter of the Dialog

Events

MethodDescriptionParameters
closeFired when click close actionfalse
showCallback to invoke when dialog is showed.
hideCallback to invoke when dialog is hidden.
maximizeFired when a dialog gets maximized.Event object
unmaximizeFired when a dialog gets unmaximized.Event object