Update messages
parent
7347e3a16d
commit
792ed203db
|
@ -3936,8 +3936,8 @@
|
|||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
.p-toast .p-toast-item-container .p-toast-icon-close {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
||||
|
|
|
@ -3936,8 +3936,8 @@
|
|||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
.p-toast .p-toast-item-container .p-toast-icon-close {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
||||
|
|
|
@ -3936,8 +3936,8 @@
|
|||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
.p-toast .p-toast-item-container .p-toast-icon-close {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
||||
|
|
|
@ -3936,8 +3936,8 @@
|
|||
margin: 0.5rem 0 0 0;
|
||||
}
|
||||
.p-toast .p-toast-item-container .p-toast-icon-close {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 50%;
|
||||
background: transparent;
|
||||
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<h5>Severities</h5>
|
||||
<Message severity="success">Order Submitted</Message>
|
||||
<Message severity="info">PrimeVue Rocks</Message>
|
||||
<Message severity="warn">There are unsaved changes</Message>
|
||||
<Message severity="error">Validation Failed</Message>
|
||||
<Message severity="success">Success Message Content</Message>
|
||||
<Message severity="info">Info Message Content</Message>
|
||||
<Message severity="warn">Warning Message Content</Message>
|
||||
<Message severity="error">Error Message Content</Message>
|
||||
|
||||
<h5>Dynamic</h5>
|
||||
<Button label="Show" @click="addMessages()" />
|
||||
|
|
|
@ -231,24 +231,23 @@ import InlineMessage from 'primevue/inlinemessage';
|
|||
</a>
|
||||
<CodeHighlight>
|
||||
<template v-pre>
|
||||
<h3>Severities</h3>
|
||||
<Message severity="success">Order Submitted</Message>
|
||||
<Message severity="info">PrimeVue Rocks</Message>
|
||||
<Message severity="warn">There are unsaved changes</Message>
|
||||
<Message severity="error">Validation Failed</Message>
|
||||
<h5>Severities</h5>
|
||||
<Message severity="success">Success Message Content</Message>
|
||||
<Message severity="info">Info Message Content</Message>
|
||||
<Message severity="warn">Warning Message Content</Message>
|
||||
<Message severity="error">Error Message Content</Message>
|
||||
|
||||
<h3>Dynamic</h3>
|
||||
<h5>Dynamic</h5>
|
||||
<Button label="Show" @click="addMessages()" />
|
||||
<Button label="Clear" @click="removeMessages()" class="p-button-secondary"/>
|
||||
|
||||
<transition-group name="p-messages" tag="div">
|
||||
<Message v-for="msg of messages" :severity="msg.severity" :key="msg.content">{{msg.content}}</Message>
|
||||
</transition-group>
|
||||
|
||||
<h3>Auto Dismiss</h3>
|
||||
<h5>Auto Dismiss</h5>
|
||||
<Message severity="warn" :life="10000" :sticky="false">This message will hide in 10 seconds.</Message>
|
||||
|
||||
<h3>Validation Message</h3>
|
||||
<h5>Validation Message</h5>
|
||||
<div class="p-formgroup-inline" style="margin-bottom:.5rem">
|
||||
<Label for="username" class="p-sr-only">Username</Label>
|
||||
<InputText id="username" placeholder="Username" class="p-invalid" />
|
||||
|
|
|
@ -44,33 +44,33 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
showSuccess() {
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Order submitted', life: 3000});
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showInfo() {
|
||||
this.$toast.add({severity:'info', summary: 'Info Message', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary: 'Info Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showWarn() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'There are unsaved changes', life: 3000});
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showError() {
|
||||
this.$toast.add({severity:'error', summary: 'Error Message', detail:'Validation failed', life: 3000});
|
||||
this.$toast.add({severity:'error', summary: 'Error Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showTopLeft() {
|
||||
this.$toast.add({severity: 'info', summary: 'Info ', detail: 'You need to close Me', group: 'tl', life: 3000});
|
||||
this.$toast.add({severity: 'info', summary: 'Info Message', detail: 'Message Content', group: 'tl', life: 3000});
|
||||
},
|
||||
showBottomLeft() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'There are unsaved changes', group: 'bl', life: 3000});
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'Message Content', group: 'bl', life: 3000});
|
||||
},
|
||||
showBottomRight() {
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Order submitted', group: 'br', life: 3000});
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Message Content', group: 'br', life: 3000});
|
||||
},
|
||||
showSticky() {
|
||||
this.$toast.add({severity: 'info', summary: 'Sticky Message', detail: 'You need to close Me'});
|
||||
this.$toast.add({severity: 'info', summary: 'Sticky Message', detail: 'Message Content'});
|
||||
},
|
||||
showMultiple() {
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'Message 1 Content', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 2', detail:'Message 2 Content', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 3', detail:'Message 3 Content', life: 3000});
|
||||
},
|
||||
clear() {
|
||||
this.$toast.removeAllGroups();
|
||||
|
|
|
@ -277,37 +277,37 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
showSuccess() {
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Order submitted', life: 3000});
|
||||
},
|
||||
showInfo() {
|
||||
this.$toast.add({severity:'info', summary: 'Info Message', detail:'PrimeVue rocks', life: 3000});
|
||||
},
|
||||
showWarn() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'There are unsaved changes', life: 3000});
|
||||
},
|
||||
showError() {
|
||||
this.$toast.add({severity:'error', summary: 'Error Message', detail:'Validation failed', life: 3000});
|
||||
},
|
||||
showTopLeft() {
|
||||
this.$toast.add({severity: 'info', summary: 'Info ', detail: 'You need to close Me', group: 'tl', life: 3000});
|
||||
},
|
||||
showBottomLeft() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'There are unsaved changes', group: 'bl', life: 3000});
|
||||
},
|
||||
showBottomRight() {
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Order submitted', group: 'br', life: 3000});
|
||||
},
|
||||
showSticky() {
|
||||
this.$toast.add({severity: 'info', summary: 'Sticky Message', detail: 'You need to close Me'});
|
||||
},
|
||||
showMultiple() {
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'PrimeVue rocks', life: 3000});
|
||||
},
|
||||
clear() {
|
||||
this.$toast.removeAllGroups();
|
||||
}
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showInfo() {
|
||||
this.$toast.add({severity:'info', summary: 'Info Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showWarn() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showError() {
|
||||
this.$toast.add({severity:'error', summary: 'Error Message', detail:'Message Content', life: 3000});
|
||||
},
|
||||
showTopLeft() {
|
||||
this.$toast.add({severity: 'info', summary: 'Info Message', detail: 'Message Content', group: 'tl', life: 3000});
|
||||
},
|
||||
showBottomLeft() {
|
||||
this.$toast.add({severity:'warn', summary: 'Warn Message', detail:'Message Content', group: 'bl', life: 3000});
|
||||
},
|
||||
showBottomRight() {
|
||||
this.$toast.add({severity:'success', summary: 'Success Message', detail:'Message Content', group: 'br', life: 3000});
|
||||
},
|
||||
showSticky() {
|
||||
this.$toast.add({severity: 'info', summary: 'Sticky Message', detail: 'Message Content'});
|
||||
},
|
||||
showMultiple() {
|
||||
this.$toast.add({severity:'info', summary:'Message 1', detail:'Message 1 Content', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 2', detail:'Message 2 Content', life: 3000});
|
||||
this.$toast.add({severity:'info', summary:'Message 3', detail:'Message 3 Content', life: 3000});
|
||||
},
|
||||
clear() {
|
||||
this.$toast.removeAllGroups();
|
||||
}
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
|
|
Loading…
Reference in New Issue