Update DynamicDialogDoc.vue
parent
43e238c73b
commit
3c19575b77
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue