createConfirmDialog
Arguments of the function
Example
import Modal from 'src/components/Modal.vue'const dialog = createConfirmDialog( Modal, { title: 'Hello!' }, { chore: true, keepInitial: true })
dialog
@param dialog
- Component. A component that used for modal dialog. Type extends DefineComponent
from Vue
initialAttrs
@param initialAttrs
- Object. New props data for dialog component, optional.
Extract types from Component's props
options
@param options
- Object. Props behavior settings, optional.
type
type PropsBehaviorOptions = { chore: boolean, keepInitial: boolean}
chore
chore
- Boolean. If true will tell to function reset values after closing dialog
keepInitial
keepInitial
- Boolean. If true reset props values to initial values, otherwise to default values of the component
Table of Contents