primevue-mirror/doc/dynamicdialog/demo/FooterDemo.vue

16 lines
418 B
Vue
Raw Normal View History

2023-03-13 12:36:33 +00:00
<template>
<Button type="button" label="No" icon="pi pi-times" @click="closeDialog({ buttonType: 'No' })" text></Button>
<Button type="button" label="Yes" icon="pi pi-check" @click="closeDialog({ buttonType: 'Yes' })" autofocus></Button>
</template>
<script>
export default {
inject: ['dialogRef'],
methods: {
closeDialog(e) {
this.dialogRef.close(e);
}
}
};
</script>