Update messages
parent
35d2e8b94b
commit
7347e3a16d
|
@ -28,12 +28,12 @@
|
|||
<h5>Validation Message</h5>
|
||||
<div class="p-formgroup-inline" style="margin-bottom:.5rem">
|
||||
<Label for="username" class="p-sr-only">Username</Label>
|
||||
<InputText placeholder="Username" class="p-invalid" />
|
||||
<InputText id="username" placeholder="Username" class="p-invalid" />
|
||||
<InlineMessage>Username is required</InlineMessage>
|
||||
</div>
|
||||
<div class="p-formgroup-inline">
|
||||
<Label for="email" class="p-sr-only">email</Label>
|
||||
<InputText placeholder="email" class="p-invalid" />
|
||||
<InputText id="email" placeholder="Email" class="p-invalid" />
|
||||
<InlineMessage />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -251,12 +251,12 @@ import InlineMessage from 'primevue/inlinemessage';
|
|||
<h3>Validation Message</h3>
|
||||
<div class="p-formgroup-inline" style="margin-bottom:.5rem">
|
||||
<Label for="username" class="p-sr-only">Username</Label>
|
||||
<InputText placeholder="Username" class="p-invalid" />
|
||||
<InputText id="username" placeholder="Username" class="p-invalid" />
|
||||
<InlineMessage>Username is required</InlineMessage>
|
||||
</div>
|
||||
<div class="p-formgroup-inline">
|
||||
<Label for="email" class="p-sr-only">email</Label>
|
||||
<InputText placeholder="email" class="p-invalid" />
|
||||
<InputText id="email" placeholder="Email" class="p-invalid" />
|
||||
<InlineMessage />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -7,46 +7,22 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-section implementation p-fluid">
|
||||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<h5>Severities</h5>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Success" class="p-button-success" @click="showSuccess" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Info" class="p-button-info" @click="showInfo" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Warn" class="p-button-warning" @click="showWarn" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Error" class="p-button-danger" @click="showError" />
|
||||
</div>
|
||||
</div>
|
||||
<Button label="Success" class="p-button-success" @click="showSuccess" />
|
||||
<Button label="Info" class="p-button-info" @click="showInfo" />
|
||||
<Button label="Warn" class="p-button-warning" @click="showWarn" />
|
||||
<Button label="Error" class="p-button-danger" @click="showError" />
|
||||
|
||||
<h5>Positions</h5>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Top Left" @click="showTopLeft" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
|
||||
</div>
|
||||
</div>
|
||||
<Button label="Top Left" class="p-mr-2" @click="showTopLeft" />
|
||||
<Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
|
||||
<Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
|
||||
|
||||
<h5>Options</h5>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-6">
|
||||
<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-6">
|
||||
<Button @click="showSticky" label="Sticky" />
|
||||
</div>
|
||||
</div>
|
||||
<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
|
||||
<Button @click="showSticky" label="Sticky" />
|
||||
|
||||
<h5>Remove All</h5>
|
||||
<Button @click="clear" label="Clear" />
|
||||
|
@ -104,4 +80,18 @@ export default {
|
|||
'ToastDoc': ToastDoc
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
button {
|
||||
min-width: 10rem;
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 960px) {
|
||||
button {
|
||||
width: 100%;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -248,46 +248,22 @@ this.$toast.removeAllGroups();
|
|||
</a>
|
||||
<CodeHighlight>
|
||||
<template v-pre>
|
||||
<h3>Severities</h3>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Success" class="p-button-success" @click="showSuccess" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Info" class="p-button-info" @click="showInfo" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Warn" class="p-button-warning" @click="showWarn" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-3">
|
||||
<Button label="Error" class="p-button-danger" @click="showError" />
|
||||
</div>
|
||||
</div>
|
||||
<h5>Severities</h5>
|
||||
<Button label="Success" class="p-button-success" @click="showSuccess" />
|
||||
<Button label="Info" class="p-button-info" @click="showInfo" />
|
||||
<Button label="Warn" class="p-button-warning" @click="showWarn" />
|
||||
<Button label="Error" class="p-button-danger" @click="showError" />
|
||||
|
||||
<h3>Positions</h3>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Top Left" @click="showTopLeft" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-4">
|
||||
<Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
|
||||
</div>
|
||||
</div>
|
||||
<h5>Positions</h5>
|
||||
<Button label="Top Left" class="p-mr-2" @click="showTopLeft" />
|
||||
<Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
|
||||
<Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
|
||||
|
||||
<h3>Options</h3>
|
||||
<div class="p-grid">
|
||||
<div class="p-col-12 p-md-6">
|
||||
<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
|
||||
</div>
|
||||
<div class="p-col-12 p-md-6">
|
||||
<Button @click="showSticky" label="Sticky" />
|
||||
</div>
|
||||
</div>
|
||||
<h5>Options</h5>
|
||||
<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
|
||||
<Button @click="showSticky" label="Sticky" />
|
||||
|
||||
<h3>Remove All</h3>
|
||||
<h5>Remove All</h5>
|
||||
<Button @click="clear" label="Clear" />
|
||||
</template>
|
||||
</CodeHighlight>
|
||||
|
|
Loading…
Reference in New Issue