Confirm # 
A simple modal with message and ok and cancel buttons. Returns promise with true if ok clicked and false if cancel is clicked.
export default {
  methods: {
    onButtonClick() {
      this.$vaModal.confirm('Are you sure you want to see standard alert?')
        .then((ok) => ok && alert('This is standard browser alert'))
    },
  },
}Props # 
Any prop from VaModal can be passed to confirm. Event listeners can be passed with on prefix. For example, onClickOutside.
| Name | Description | Types | Default | 
|---|---|---|---|
| allowBodyScroll | Allows the document scroll while modal is open.  | 
  | 
  | 
| anchorClass | Set class name to the   | 
  | -  | 
| ariaCloseLabel | The aria-label of the close button  | 
  | 
  | 
| attachElement | A valid selector of element, where modal will be rendered  | 
  | 
  | 
| backgroundColor | The background color of the modal dialog  | 
  | 
  | 
| beforeCancel | 
  | -  | |
| beforeClose | Function run before closing the modal  | 
  | -  | 
| beforeOk | 
  | -  | |
| blur | Use   | 
  | 
  | 
| cancelText | Text string to place in the default footer Cancel button  | 
  | 
  | 
| child:cancelButton | 
  | -  | |
| child:closeButton | 
  | -  | |
| child:okButton | 
  | -  | |
| closeButton | 
  | 
  | |
| disableAttachment | Ignore   | 
  | 
  | 
| fixedLayout | Use   | 
  | 
  | 
| fullscreen | Add the   | 
  | 
  | 
| hideDefaultActions | Use   | 
  | 
  | 
| maxHeight | Use   | 
  | 
  | 
| maxWidth | Use   | 
  | 
  | 
| message | Content of modal body  | 
  | 
  | 
| mobileFullscreen | Use   | 
  | 
  | 
| noDismiss | Disable both close on overlay click and close on Esc  | 
  | 
  | 
| noEscDismiss | Disable close on Esc  | 
  | 
  | 
| noOutsideDismiss | Disable close on overlay click  | 
  | 
  | 
| noPadding | Disable padding in the modal dialog  | 
  | 
  | 
| okText | Text string to place in the default footer Ok button  | 
  | 
  | 
| onBeforeClose | Function to be called before closing  | 
  | |
| onBeforeOpen | Function to be called before opening  | 
  | |
| onCancel | Function to be called after cancel button is been pressed  | 
  | |
| onClickOutside | Function to be called after clicking outside the modal  | 
  | |
| onClose | Function to be called after closing  | 
  | |
| onOk | Function to be called after pressing the "ok" button  | 
  | |
| onOpen | Function to be called after opening the modal  | 
  | |
| overlay | Use   | 
  | 
  | 
| overlayOpacity | Set the overlay's opacity  | 
  | 
  | 
| showNestedOverlay | 
  | 
  | |
| size | Set the size of the modal's width.   | 
  | 
  | 
| sizesConfig | Provide a set of sizes as a global component specific setting.  | 
  | 
 | 
| title | Text content to place in the title  | 
  | 
  | 
| withoutTransitions | Use   | 
  | 
  | 
| zIndex | Set the modal's   | 
  | -  | 
Events #
| Name | Description | 
|---|---|
beforeClose  | Emits before modal's start closing after transition started  | 
beforeOpen  | Emits before modal's open after transition started  | 
cancel  | Emits when the user closes the modal window without side effects  | 
clickOutside  | Emits when overlay is clicked  | 
close  | Emits when modal's is closed and transition is complete  | 
ok  | Emits when Ok button is clicked  | 
open  | Emits when modal's is open and transition is complete  | 
update:modelValue  | The event is triggered when the component needs to change visibility  |