Update DynamicDialogDoc.vue

pull/2677/head
mertsincan 2022-06-15 09:02:58 +01:00
parent 43e238c73b
commit 3c19575b77
1 changed files with 14 additions and 11 deletions

View File

@ -341,20 +341,23 @@ export default {
props: {
header: 'Product List',
style: {
width: '50%',
height: '550px',
width: '50vw',
},
breakpoints:{
'960px': '75vw',
'640px': '90vw'
},
modal: true
},
templates: {
footer: () => {
return [
h(Button, { label: "No", icon: "pi pi-times", onClick: () => dialogRef.hide({ buttonType: 'No' }), class: "p-button-text" }),
h(Button, { label: "Yes", icon: "pi pi-check", onClick: () => dialogRef.hide({ buttonType: 'Yes' }), autofocus: true })
h(Button, { label: "No", icon: "pi pi-times", onClick: () => dialogRef.close({ buttonType: 'No' }), class: "p-button-text" }),
h(Button, { label: "Yes", icon: "pi pi-check", onClick: () => dialogRef.close({ buttonType: 'Yes' }), autofocus: true })
]
}
},
onHide: (options) => {
onClose: (options) => {
const data = options.data;
if (data) {
const buttonType = data.buttonType;