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

15 lines
310 B
Vue

<template>
<Button type="button" label="Cancel" icon="pi pi-times" @click="closeDialog({ buttonType: 'Cancel' })" autofocus></Button>
</template>
<script>
export default {
inject: ['dialogRef'],
methods: {
closeDialog(e) {
this.dialogRef.close(e);
}
}
};
</script>