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

15 lines
310 B
Vue
Raw Normal View History

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