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