Confirm* demo updates

This commit is contained in:
tugcekucukoglu 2024-03-27 18:45:43 +03:00
parent d31a423153
commit fff0c59e27
6 changed files with 189 additions and 92 deletions

View file

@ -77,9 +77,15 @@ export default {
icon: 'pi pi-info-circle',
position: position,
rejectClass: 'p-button-secondary p-button-text',
acceptClass: 'p-button-text',
rejectLabel: 'Cancel',
acceptLabel: 'Save',
rejectProps: {
label: 'Cancel',
severity: 'secondary',
text: true
},
acceptProps: {
label: 'Save',
text: true
},
accept: () => {
this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Request submitted', life: 3000 });
},
@ -128,10 +134,15 @@ const confirmPosition = (position) => {
header: 'Confirmation',
icon: 'pi pi-info-circle',
position: position,
rejectClass: 'p-button-secondary p-button-text',
acceptClass: 'p-button-text',
rejectLabel: 'Cancel',
acceptLabel: 'Save',
rejectProps: {
label: 'Cancel',
severity: 'secondary',
text: true
},
acceptProps: {
label: 'Save',
text: true
},
accept: () => {
toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Request submitted', life: 3000 });
},
@ -153,10 +164,15 @@ const confirmPosition = (position) => {
header: 'Confirmation',
icon: 'pi pi-info-circle',
position: position,
rejectClass: 'p-button-secondary p-button-text',
acceptClass: 'p-button-text',
rejectLabel: 'Cancel',
acceptLabel: 'Save',
rejectProps: {
label: 'Cancel',
severity: 'secondary',
text: true
},
acceptProps: {
label: 'Save',
text: true
},
accept: () => {
this.$toast.add({ severity: 'info', summary: 'Confirmed', detail: 'Request submitted', life: 3000 });
},