diff --git a/doc/chart/ChartJSDoc.vue b/doc/chart/ChartJSDoc.vue index d655538e3..90fe0a951 100644 --- a/doc/chart/ChartJSDoc.vue +++ b/doc/chart/ChartJSDoc.vue @@ -11,7 +11,8 @@ export default { return { code: { basic: ` -npm install chart.js` +npm install chart.js +` } }; } diff --git a/doc/confirmdialog/ConfirmationServiceDoc.vue b/doc/confirmdialog/ConfirmationServiceDoc.vue index af81d1b20..f5d29058f 100644 --- a/doc/confirmdialog/ConfirmationServiceDoc.vue +++ b/doc/confirmdialog/ConfirmationServiceDoc.vue @@ -19,13 +19,15 @@ import {createApp} from 'vue'; import ConfirmationService from 'primevue/confirmationservice'; const app = createApp(App); -app.use(ConfirmationService);` +app.use(ConfirmationService); +` }, code2: { basic: ` import { useConfirm } from "primevue/useconfirm"; -const confirm = useConfirm();` +const confirm = useConfirm(); +` } }; } diff --git a/doc/confirmpopup/ConfirmationServiceDoc.vue b/doc/confirmpopup/ConfirmationServiceDoc.vue index 2ae1ccd6d..bb3499fa0 100644 --- a/doc/confirmpopup/ConfirmationServiceDoc.vue +++ b/doc/confirmpopup/ConfirmationServiceDoc.vue @@ -19,13 +19,15 @@ import {createApp} from 'vue'; import ConfirmationService from 'primevue/confirmationservice'; const app = createApp(App); -app.use(ConfirmationService);` +app.use(ConfirmationService); +` }, code2: { basic: ` import { useConfirm } from "primevue/useconfirm"; -const confirm = useConfirm();` +const confirm = useConfirm(); +` } }; } diff --git a/doc/dataview/PrimeFlexDoc.vue b/doc/dataview/PrimeFlexDoc.vue index dff475d5d..1ae651414 100644 --- a/doc/dataview/PrimeFlexDoc.vue +++ b/doc/dataview/PrimeFlexDoc.vue @@ -11,7 +11,9 @@ export default { data() { return { code1: { - basic: `npm install primeflex` + basic: ` +npm install primeflex +` }, code2: { basic: ` diff --git a/doc/dynamicdialog/CloseDialogDoc.vue b/doc/dynamicdialog/CloseDialogDoc.vue index d5a4b4ccd..ccbfe1801 100644 --- a/doc/dynamicdialog/CloseDialogDoc.vue +++ b/doc/dynamicdialog/CloseDialogDoc.vue @@ -10,14 +10,16 @@ export default { data() { return { code: { - basic: `export default { + basic: ` +export default { inject: ['dialogRef'], methods:{ closeDialog() { this.dialogRef.close(); } } -}`, +} +`, options: ` export default { inject: ['dialogRef'], diff --git a/doc/dynamicdialog/DialogServiceDoc.vue b/doc/dynamicdialog/DialogServiceDoc.vue index 4c9ca587b..bb5c8ea82 100644 --- a/doc/dynamicdialog/DialogServiceDoc.vue +++ b/doc/dynamicdialog/DialogServiceDoc.vue @@ -19,13 +19,15 @@ import {createApp} from 'vue'; import DialogService from 'primevue/dialogservice'; const app = createApp(App); -app.use(DialogService);` +app.use(DialogService); +` }, code2: { basic: ` import { useDialog } from 'primevue/usedialog'; -const dialog = useDialog();`, +const dialog = useDialog(); +`, options: `const dialogRef = this.$dialog;`, composition: ` import { useDialog } from 'primevue/usedialog'; diff --git a/doc/dynamicdialog/EmitsDoc.vue b/doc/dynamicdialog/EmitsDoc.vue index 5a1adc5ec..fe212173d 100644 --- a/doc/dynamicdialog/EmitsDoc.vue +++ b/doc/dynamicdialog/EmitsDoc.vue @@ -22,7 +22,8 @@ this.$dialog.open(ProductListDemo, { console.log(e); // {user: 'primetime'} } }, -};` +}; +` }, code2: { basic: ` diff --git a/doc/dynamicdialog/OpenDialogDoc.vue b/doc/dynamicdialog/OpenDialogDoc.vue index a77a96672..74a1e6500 100644 --- a/doc/dynamicdialog/OpenDialogDoc.vue +++ b/doc/dynamicdialog/OpenDialogDoc.vue @@ -19,7 +19,8 @@ export default { this.$dialog.open(ProductListDemo, {}); } } -}`, +} +`, options: ` import ProductListDemo from './ProductListDemo'; diff --git a/doc/dynamicdialog/PassingDataDoc.vue b/doc/dynamicdialog/PassingDataDoc.vue index 39a4babb3..f4fd8ac85 100644 --- a/doc/dynamicdialog/PassingDataDoc.vue +++ b/doc/dynamicdialog/PassingDataDoc.vue @@ -21,15 +21,18 @@ this.$dialog.open(ProductListDemo, { data: { user: 'primetime' } -};` +}; +` }, code2: { - basic: `export default { + basic: ` +export default { inject: ['dialogRef'], mounted:{ const params = this.dialogRef.data; // {user: 'primetime'} } -}` +} +` }, code3: { basic: ` @@ -37,17 +40,20 @@ this.$dialog.open(ProductListDemo, { onClose(options) { const callbackParams = options.data; // {id: 12} } -);` +); +` }, code4: { - basic: `export default { + basic: ` +export default { inject: ['dialogRef'], methods:{ closeDialog() { this.dialogRef.close({id: 12}); } } -}` +} +` } }; } diff --git a/doc/editor/QuillDoc.vue b/doc/editor/QuillDoc.vue index 1b2ce3fd0..ebb74cfd9 100644 --- a/doc/editor/QuillDoc.vue +++ b/doc/editor/QuillDoc.vue @@ -10,7 +10,9 @@ export default { data() { return { code: { - basic: `npm install quill` + basic: ` +npm install quill +` } }; } diff --git a/doc/focustrap/ImportDoc.vue b/doc/focustrap/ImportDoc.vue index 70aba55de..b748259cd 100644 --- a/doc/focustrap/ImportDoc.vue +++ b/doc/focustrap/ImportDoc.vue @@ -11,7 +11,8 @@ export default { basic: ` import FocusTrap from 'primevue/focustrap'; -app.directive('focustrap', FocusTrap);` +app.directive('focustrap', FocusTrap); +` } }; } diff --git a/doc/message/TemplateDoc.vue b/doc/message/TemplateDoc.vue index f2f49ed33..44e93b407 100644 --- a/doc/message/TemplateDoc.vue +++ b/doc/message/TemplateDoc.vue @@ -19,7 +19,7 @@ -

container templating allows customizing the Dialog component.

+

container templating allows customizing the Message component.

@@ -16,21 +16,18 @@ export default { return { code: { basic: ` -
Green
-
Orange
-
Purple
`, +
Green
+
Orange
+
Purple
`, options: ` -