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

30 lines
633 B
Vue
Raw Normal View History

2022-09-09 20:41:18 +00:00
<template>
<div>
<p>
There are <strong>{{ totalProducts }}</strong> products in total in this list.
</p>
<div class="flex justify-content-end">
2022-12-08 12:26:57 +00:00
<Button autofocus type="button" label="Close" @click="closeDialog"></Button>
2022-09-09 20:41:18 +00:00
</div>
</div>
</template>
<script>
export default {
inject: ['dialogRef'],
data() {
return {
totalProducts: 0
};
},
mounted() {
this.totalProducts = this.dialogRef.data.totalProducts;
},
methods: {
closeDialog() {
this.dialogRef.close();
}
}
};
</script>