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