mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update dynamic demo
This commit is contained in:
parent
18c8c5a726
commit
91873a8ae7
6 changed files with 118 additions and 31 deletions
15
doc/dynamicdialog/demo/FooterDemo.vue
Normal file
15
doc/dynamicdialog/demo/FooterDemo.vue
Normal file
|
@ -0,0 +1,15 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue