diff --git a/doc/dynamicdialog/CustomizationDoc.vue b/doc/dynamicdialog/CustomizationDoc.vue index c995541ed..dd65751a6 100644 --- a/doc/dynamicdialog/CustomizationDoc.vue +++ b/doc/dynamicdialog/CustomizationDoc.vue @@ -11,9 +11,9 @@ export default { return { code: { basic: ` -import { h } from 'vue'; -import Button from 'primevue/button'; +import { markRaw } from 'vue'; import ProductListDemo from './ProductListDemo'; +import FooterDemo from './FooterDemo'; export default { methods:{ @@ -31,12 +31,7 @@ export default { modal: true }, templates: { - footer: () => { - return [ - h(Button, { label: "No", icon: "pi pi-times", onClick: () => dialogRef.close(), class: "p-button-text" }), - h(Button, { label: "Yes", icon: "pi pi-check", onClick: () => dialogRef.close(), autofocus: true}) - ] - } + footer: markRaw(FooterDemo) }, onClose: (options) => { const data = options.data; diff --git a/doc/dynamicdialog/DialogServiceDoc.vue b/doc/dynamicdialog/DialogServiceDoc.vue index fb7c2a477..4c9ca587b 100644 --- a/doc/dynamicdialog/DialogServiceDoc.vue +++ b/doc/dynamicdialog/DialogServiceDoc.vue @@ -6,7 +6,7 @@
$dialog is available as a property in the application instance for Options API. The service can be injected with the useDialog function for Composition API.