New dialog demo
parent
c7050d4c6d
commit
aece85cc60
|
@ -5,11 +5,20 @@
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
||||||
|
|
||||||
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50rem' }" :breakpoints="{ '1199px': '75vw', '575px': '90vw' }">
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
||||||
<p>
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
<div class="flex align-items-center gap-3 mb-3">
|
||||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
||||||
</p>
|
<InputText id="username" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex align-items-center gap-3 mb-5">
|
||||||
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
||||||
|
<InputText id="Email" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-content-end gap-2">
|
||||||
|
<Button type="button" label="Cancel" severity="secondary"></Button>
|
||||||
|
<Button type="button" label="Save"></Button>
|
||||||
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -24,22 +33,40 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
||||||
|
|
||||||
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50rem' }" :breakpoints="{ '1199px': '75vw', '575px': '90vw' }">
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
||||||
<p>
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
<div class="flex align-items-center gap-3 mb-3">
|
||||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
||||||
</p>
|
<InputText id="username" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex align-items-center gap-3 mb-5">
|
||||||
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
||||||
|
<InputText id="Email" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-content-end gap-2">
|
||||||
|
<Button type="button" label="Cancel" severity="secondary"></Button>
|
||||||
|
<Button type="button" label="Save"></Button>
|
||||||
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
||||||
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50rem' }" :breakpoints="{ '1199px': '75vw', '575px': '90vw' }">
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
||||||
<p>
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
<div class="flex align-items-center gap-3 mb-3">
|
||||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
||||||
</p>
|
<InputText id="username" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex align-items-center gap-3 mb-5">
|
||||||
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
||||||
|
<InputText id="Email" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-content-end gap-2">
|
||||||
|
<Button type="button" label="Cancel" severity="secondary"></Button>
|
||||||
|
<Button type="button" label="Save"></Button>
|
||||||
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,11 +85,20 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
||||||
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50rem' }" :breakpoints="{ '1199px': '75vw', '575px': '90vw' }">
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
||||||
<p>
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
<div class="flex align-items-center gap-3 mb-3">
|
||||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
||||||
</p>
|
<InputText id="username" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex align-items-center gap-3 mb-5">
|
||||||
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
||||||
|
<InputText id="Email" class="flex-auto" />
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-content-end gap-2">
|
||||||
|
<Button type="button" label="Cancel" severity="secondary"></Button>
|
||||||
|
<Button type="button" label="Save"></Button>
|
||||||
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue