Skip to content
On this page

VDialog

Base class for dialog

Props

NameTypeDescription
aria-currentEnum:
page
step
location
date
time
true
false
Indicates the element that represents the current item within a container or set of related elements.
openbooleanIndicates dialog's state
iconEnum:
10-sec-backward-solid
10-sec-forward-line
10-sec-forward-solid
accessibility-line
accessibility-solid
active-call-line
active-call-solid
add-call-line
add-call-solid
add-group-line
add-group-solid
add-line
... 1186 more ...
undefined See the Vivid Icon Gallery for available icons: https://icons.vivid.vonage.com/
icon-placementEnum:
top
side
subtitlestring
headlinestring
full-width-bodyboolean
aria-labelstring
dismiss-button-aria-labelstring
no-light-dismissboolean

Events

NameEvent TypeDescription
clickMouseEventFires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
focusFocusEventFires when the element receives focus.
blurFocusEventFires when the element loses focus.
keydownKeyboardEventFires when a key is pressed.
keyupKeyboardEventFires when a key is released.
inputEventFires when the value of an element has been changed.
closeunknownFired when the dialog is closed.

Slots

NameDescription
graphicUse the graphic slot in order to replace the icon.
bodyUse the body slot in order to add custom HTML to the dialog.
footerUse the footer slot in order to add action buttons to the bottom of the dialog.
mainAssign nodes to the main slot to fully override a dialog’s predefined flow and style with your own.
action-itemsUse the action-items slot in order to add action buttons to the bottom of the dialog.

Methods

NameTypeDescription
close() => unknown
show() => unknown
showModal() => unknown