Demo update

pull/358/head
cagataycivici 2020-06-26 16:24:45 +03:00
parent 3e16d9ac31
commit 39372130da
4 changed files with 21 additions and 25 deletions

View File

@ -50,9 +50,9 @@
<h5>Programmatic</h5>
<div style="padding: .5em 0 1em 0">
<Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-secondary" />
<Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-secondary" style="margin-left: .5em" />
<Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-secondary" style="margin-left: .5em" />
<Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-text" />
<Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-text" style="margin-left: .5em" />
<Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-text" style="margin-left: .5em" />
</div>
<Accordion :multiple="true">

View File

@ -120,9 +120,9 @@ import AccordionTab from 'primevue/accordiontab';
<p>Tabs can be controlled programmatically using active property.</p>
<CodeHighlight>
&lt;div&gt;
&lt;Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-secondary" /&gt;
&lt;Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-secondary" style="margin-left: .5em" /&gt;
&lt;Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-secondary" style="margin-left: .5em" /&gt;
&lt;Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-text" /&gt;
&lt;Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-text" style="margin-left: .5em" /&gt;
&lt;Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-text" style="margin-left: .5em" /&gt;
&lt;/div&gt;
&lt;Accordion :multiple="true"&gt;
@ -315,9 +315,9 @@ export default {
&lt;h5&gt;Programmatic&lt;/h5&gt;
&lt;div style="padding: .5em 0 1em 0"&gt;
&lt;Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-secondary" /&gt;
&lt;Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-secondary" style="margin-left: .5em" /&gt;
&lt;Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-secondary" style="margin-left: .5em" /&gt;
&lt;Button :icon="active1 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 1st" @click="active1 = !active1" class="p-button-text" /&gt;
&lt;Button :icon="active2 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 2nd" @click="active2 = !active2" class="p-button-text" style="margin-left: .5em" /&gt;
&lt;Button :icon="active3 ? 'pi pi-minus' : 'pi pi-plus'" label="Toggle 3rd" @click="active3 = !active3" class="p-button-text" style="margin-left: .5em" /&gt;
&lt;/div&gt;
&lt;Accordion :multiple="true"&gt;

View File

@ -11,17 +11,13 @@
<div class="card">
<h5>Basic</h5>
<Button label="Show" icon="pi pi-external-link" @click="openBasic" />
<Dialog header="Header " :visible.sync="displayBasic" :style="{width: '50vw'}" :contentStyle="{height: '90vh'}">
<Calendar id="basic" />
<Panel header="Header">
<Dialog header="Header " :visible.sync="displayBasic" :style="{width: '50vw'}">
<p>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.
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.</p>
</Panel>
<template #footer>
<Button label="No" icon="pi pi-times" @click="closeBasic" class="p-button-secondary"/>
<Button label="No" icon="pi pi-times" @click="closeBasic" class="p-button-text"/>
<Button label="Yes" icon="pi pi-check" @click="closeBasic" />
</template>
</Dialog>
@ -43,7 +39,7 @@
cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>
<template #footer>
<Button label="No" icon="pi pi-times" @click="closeBasic2" class="p-button-secondary"/>
<Button label="No" icon="pi pi-times" @click="closeBasic2" class="p-button-text"/>
<Button label="Yes" icon="pi pi-check" @click="closeBasic2" />
</template>
</Dialog>
@ -55,7 +51,7 @@
laboris nisi ut aliquip ex ea commodo consequat. 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.</p>
<template #footer>
<Button label="No" icon="pi pi-times" @click="closeModal" class="p-button-secondary"/>
<Button label="No" icon="pi pi-times" @click="closeModal" class="p-button-text"/>
<Button label="Yes" icon="pi pi-check" @click="closeModal" />
</template>
</Dialog>
@ -67,7 +63,7 @@
laboris nisi ut aliquip ex ea commodo consequat. 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.</p>
<template #footer>
<Button label="No" icon="pi pi-times" @click="closeMaximizable" class="p-button-secondary"/>
<Button label="No" icon="pi pi-times" @click="closeMaximizable" class="p-button-text"/>
<Button label="Yes" icon="pi pi-check" @click="closeMaximizable" />
</template>
</Dialog>
@ -95,7 +91,7 @@
laboris nisi ut aliquip ex ea commodo consequat. 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.</p>
<template #footer>
<Button label="No" icon="pi pi-times" @click="closePosition" class="p-button-secondary" />
<Button label="No" icon="pi pi-times" @click="closePosition" class="p-button-text" />
<Button label="Yes" icon="pi pi-check" @click="closePosition" />
</template>
</Dialog>

View File

@ -45,7 +45,7 @@ export default {
Content
&lt;template #footer&gt;
&lt;Button label="Yes" icon="pi pi-check" /&gt;
&lt;Button label="No" icon="pi pi-times" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" class="p-button-text"/&gt;
&lt;/template&gt;
&lt;/Dialog&gt;
</CodeHighlight>
@ -241,7 +241,7 @@ export default {
laboris nisi ut aliquip ex ea commodo consequat. 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.&lt;/p&gt;
&lt;template #footer&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeBasic" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeBasic" class="p-button-text"/&gt;
&lt;Button label="Yes" icon="pi pi-check" @click="closeBasic" /&gt;
&lt;/template&gt;
&lt;/Dialog&gt;
@ -263,7 +263,7 @@ export default {
cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe
eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.&lt;/p&gt;
&lt;template #footer&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeBasic2" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeBasic2" class="p-button-text"/&gt;
&lt;Button label="Yes" icon="pi pi-check" @click="closeBasic2" /&gt;
&lt;/template&gt;
&lt;/Dialog&gt;
@ -275,7 +275,7 @@ export default {
laboris nisi ut aliquip ex ea commodo consequat. 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.&lt;/p&gt;
&lt;template #footer&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeModal" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeModal" class="p-button-text"/&gt;
&lt;Button label="Yes" icon="pi pi-check" @click="closeModal" /&gt;
&lt;/template&gt;
&lt;/Dialog&gt;
@ -287,7 +287,7 @@ export default {
laboris nisi ut aliquip ex ea commodo consequat. 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.&lt;/p&gt;
&lt;template #footer&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeMaximizable" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" @click="closeMaximizable" class="p-button-text"/&gt;
&lt;Button label="Yes" icon="pi pi-check" @click="closeMaximizable" /&gt;
&lt;/template&gt;
&lt;/Dialog&gt;
@ -315,7 +315,7 @@ export default {
laboris nisi ut aliquip ex ea commodo consequat. 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.&lt;/p&gt;
&lt;template #footer&gt;
&lt;Button label="No" icon="pi pi-times" @click="closePosition" class="p-button-secondary"/&gt;
&lt;Button label="No" icon="pi pi-times" @click="closePosition" class="p-button-text"/&gt;
&lt;Button label="Yes" icon="pi pi-check" @click="closePosition" /&gt;
&lt;/template&gt;
&lt;/Dialog&gt;