Migrated demos
parent
1f86b4906f
commit
48f92d3966
|
@ -3,10 +3,10 @@
|
||||||
<p>Accordion can be controlled programmatically using a binding to <i>value</i> along with <i>v-model</i> to update the active value.</p>
|
<p>Accordion can be controlled programmatically using a binding to <i>value</i> along with <i>v-model</i> to update the active value.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex mb-3 gap-2 justify-content-end">
|
<div class="flex mb-4 gap-2 justify-end">
|
||||||
<Button @click="active = '0'" rounded label="1" class="w-2rem h-2rem p-0" :outlined="active !== '0'" />
|
<Button @click="active = '0'" rounded label="1" class="w-8 h-8 p-0" :outlined="active !== '0'" />
|
||||||
<Button @click="active = '1'" rounded label="2" class="w-2rem h-2rem p-0" :outlined="active !== '1'" />
|
<Button @click="active = '1'" rounded label="2" class="w-8 h-8 p-0" :outlined="active !== '1'" />
|
||||||
<Button @click="active = '2'" rounded label="3" class="w-2rem h-2rem p-0" :outlined="active !== '2'" />
|
<Button @click="active = '2'" rounded label="3" class="w-8 h-8 p-0" :outlined="active !== '2'" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Accordion :value="active">
|
<Accordion :value="active">
|
||||||
|
@ -49,10 +49,10 @@ export default {
|
||||||
active: '0',
|
active: '0',
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<div class="flex mb-3 gap-2 justify-content-end">
|
<div class="flex mb-4 gap-2 justify-end">
|
||||||
<Button @click="active = '0'" rounded label="1" class="w-2rem h-2rem p-0" :outlined="active !== '0'" />
|
<Button @click="active = '0'" rounded label="1" class="w-8 h-8 p-0" :outlined="active !== '0'" />
|
||||||
<Button @click="active = '1'" rounded label="2" class="w-2rem h-2rem p-0" :outlined="active !== '1'" />
|
<Button @click="active = '1'" rounded label="2" class="w-8 h-8 p-0" :outlined="active !== '1'" />
|
||||||
<Button @click="active = '2'" rounded label="3" class="w-2rem h-2rem p-0" :outlined="active !== '2'" />
|
<Button @click="active = '2'" rounded label="3" class="w-8 h-8 p-0" :outlined="active !== '2'" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Accordion :value="active">
|
<Accordion :value="active">
|
||||||
|
@ -88,10 +88,10 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex mb-3 gap-2 justify-content-end">
|
<div class="flex mb-4 gap-2 justify-end">
|
||||||
<Button @click="active = '0'" rounded label="1" class="w-2rem h-2rem p-0" :outlined="active !== '0'" />
|
<Button @click="active = '0'" rounded label="1" class="w-8 h-8 p-0" :outlined="active !== '0'" />
|
||||||
<Button @click="active = '1'" rounded label="2" class="w-2rem h-2rem p-0" :outlined="active !== '1'" />
|
<Button @click="active = '1'" rounded label="2" class="w-8 h-8 p-0" :outlined="active !== '1'" />
|
||||||
<Button @click="active = '2'" rounded label="3" class="w-2rem h-2rem p-0" :outlined="active !== '2'" />
|
<Button @click="active = '2'" rounded label="3" class="w-8 h-8 p-0" :outlined="active !== '2'" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Accordion :value="active">
|
<Accordion :value="active">
|
||||||
|
@ -139,10 +139,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex mb-3 gap-2 justify-content-end">
|
<div class="flex mb-4 gap-2 justify-end">
|
||||||
<Button @click="active = '0'" rounded label="1" class="w-2rem h-2rem p-0" :outlined="active !== '0'" />
|
<Button @click="active = '0'" rounded label="1" class="w-8 h-8 p-0" :outlined="active !== '0'" />
|
||||||
<Button @click="active = '1'" rounded label="2" class="w-2rem h-2rem p-0" :outlined="active !== '1'" />
|
<Button @click="active = '1'" rounded label="2" class="w-8 h-8 p-0" :outlined="active !== '1'" />
|
||||||
<Button @click="active = '2'" rounded label="3" class="w-2rem h-2rem p-0" :outlined="active !== '2'" />
|
<Button @click="active = '2'" rounded label="3" class="w-8 h-8 p-0" :outlined="active !== '2'" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Accordion :value="active">
|
<Accordion :value="active">
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
||||||
<AccordionPanel value="0">
|
<AccordionPanel value="0">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
||||||
<Badge value="3" class="ml-auto mr-2" />
|
<Badge value="3" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="1">
|
<AccordionPanel value="1">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Onyama Limba</span>
|
<span class="font-bold whitespace-nowrap">Onyama Limba</span>
|
||||||
<Badge value="4" class="ml-auto mr-2" />
|
<Badge value="4" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -36,9 +36,9 @@
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="2">
|
<AccordionPanel value="2">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Ioni Bowcher</span>
|
<span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
|
||||||
<Badge value="2" class="ml-auto mr-2" />
|
<Badge value="2" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -63,9 +63,9 @@ export default {
|
||||||
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
||||||
<AccordionPanel value="0">
|
<AccordionPanel value="0">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
||||||
<Badge value="3" class="ml-auto mr-2" />
|
<Badge value="3" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -78,9 +78,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="1">
|
<AccordionPanel value="1">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Onyama Limba</span>
|
<span class="font-bold whitespace-nowrap">Onyama Limba</span>
|
||||||
<Badge value="4" class="ml-auto mr-2" />
|
<Badge value="4" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -93,9 +93,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="2">
|
<AccordionPanel value="2">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Ioni Bowcher</span>
|
<span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
|
||||||
<Badge value="2" class="ml-auto mr-2" />
|
<Badge value="2" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -114,9 +114,9 @@ export default {
|
||||||
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
||||||
<AccordionPanel value="0">
|
<AccordionPanel value="0">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
||||||
<Badge value="3" class="ml-auto mr-2" />
|
<Badge value="3" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -129,9 +129,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="1">
|
<AccordionPanel value="1">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Onyama Limba</span>
|
<span class="font-bold whitespace-nowrap">Onyama Limba</span>
|
||||||
<Badge value="4" class="ml-auto mr-2" />
|
<Badge value="4" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -144,9 +144,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="2">
|
<AccordionPanel value="2">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Ioni Bowcher</span>
|
<span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
|
||||||
<Badge value="2" class="ml-auto mr-2" />
|
<Badge value="2" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -170,9 +170,9 @@ export default {
|
||||||
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
<Accordion value="0" expandIcon="pi pi-plus" collapseIcon="pi pi-minus">
|
||||||
<AccordionPanel value="0">
|
<AccordionPanel value="0">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
||||||
<Badge value="3" class="ml-auto mr-2" />
|
<Badge value="3" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -185,9 +185,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="1">
|
<AccordionPanel value="1">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Onyama Limba</span>
|
<span class="font-bold whitespace-nowrap">Onyama Limba</span>
|
||||||
<Badge value="4" class="ml-auto mr-2" />
|
<Badge value="4" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
@ -200,9 +200,9 @@ export default {
|
||||||
</AccordionPanel>
|
</AccordionPanel>
|
||||||
<AccordionPanel value="2">
|
<AccordionPanel value="2">
|
||||||
<AccordionHeader>
|
<AccordionHeader>
|
||||||
<span class="flex align-items-center gap-2 w-full">
|
<span class="flex items-center gap-2 w-full">
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/ionibowcher.png" shape="circle" />
|
||||||
<span class="font-bold white-space-nowrap">Ioni Bowcher</span>
|
<span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
|
||||||
<Badge value="2" class="ml-auto mr-2" />
|
<Badge value="2" class="ml-auto mr-2" />
|
||||||
</span>
|
</span>
|
||||||
</AccordionHeader>
|
</AccordionHeader>
|
||||||
|
|
|
@ -2,45 +2,45 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Animation classes are defined with the <i>enterClass</i> and <i>leaveClass</i> properties. This example utilizes PrimeFlex animations however any valid CSS animation is supported.</p>
|
<p>Animation classes are defined with the <i>enterClass</i> and <i>leaveClass</i> properties. This example utilizes PrimeFlex animations however any valid CSS animation is supported.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-column align-items-center overflow-hidden">
|
<div class="card flex flex-col items-center overflow-hidden">
|
||||||
<div class="flex flex-column align-items-center gap-2">
|
<div class="flex flex-col items-center gap-2">
|
||||||
<span class="text-xl font-medium">Scroll Down</span>
|
<span class="text-xl font-medium">Scroll Down</span>
|
||||||
<span class="slidedown-icon h-2rem w-2rem bg-primary border-circle inline-flex align-items-center justify-content-center">
|
<span class="slidedown-icon h-8 w-8 bg-primary text-primary-contrast rounded-full inline-flex items-center justify-center">
|
||||||
<i class="pi pi-arrow-down" />
|
<i class="pi pi-arrow-down" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div
|
<div
|
||||||
v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }"
|
v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }"
|
||||||
class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out"
|
class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out"
|
||||||
>
|
>
|
||||||
<span class="text-3xl font-bold">fade-left</span>
|
<span class="text-3xl font-bold">fade-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div
|
<div
|
||||||
v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }"
|
v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }"
|
||||||
class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out"
|
class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out"
|
||||||
>
|
>
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">zoom</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-left</span>
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-y</span>
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">scalein</span>
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,69 +53,69 @@ export default {
|
||||||
return {
|
return {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-left</span>
|
<span class="text-3xl font-bold">fade-left</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">zoom</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-left</span>
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-y</span>
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">scalein</span>
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-column align-items-center">
|
<div class="card flex flex-col items-center">
|
||||||
<div class="flex flex-column align-items-center gap-2">
|
<div class="flex flex-col items-center gap-2">
|
||||||
<span class="text-xl font-medium">Scroll Down</span>
|
<span class="text-xl font-medium">Scroll Down</span>
|
||||||
<span class="slidedown-icon h-2rem w-2rem bg-primary border-circle inline-flex align-items-center justify-content-center">
|
<span class="slidedown-icon h-8 w-8 bg-primary text-primary-contrast rounded-full inline-flex items-center justify-center">
|
||||||
<i class="pi pi-arrow-down" />
|
<i class="pi pi-arrow-down" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-left</span>
|
<span class="text-3xl font-bold">fade-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">zoom</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-left</span>
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-y</span>
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">scalein</span>
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -151,39 +151,39 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-column align-items-center">
|
<div class="card flex flex-col items-center">
|
||||||
<div class="flex flex-column align-items-center gap-2">
|
<div class="flex flex-col items-center gap-2">
|
||||||
<span class="text-xl font-medium">Scroll Down</span>
|
<span class="text-xl font-medium">Scroll Down</span>
|
||||||
<span class="slidedown-icon h-2rem w-2rem bg-primary border-circle inline-flex align-items-center justify-content-center">
|
<span class="slidedown-icon h-8 w-8 bg-primary text-primary-contrast rounded-full inline-flex items-center justify-center">
|
||||||
<i class="pi pi-arrow-down" />
|
<i class="pi pi-arrow-down" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'fadein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">fade-in</span>
|
<span class="text-3xl font-bold">fade-in</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinleft', leaveClass: 'fadeoutleft' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-left</span>
|
<span class="text-3xl font-bold">fade-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'fadeinright', leaveClass: 'fadeoutright' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">fade-right</span>
|
<span class="text-3xl font-bold">fade-right</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000">
|
<div v-animateonscroll="{ enterClass: 'zoomin', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000">
|
||||||
<span class="text-3xl font-bold">zoom</span>
|
<span class="text-3xl font-bold">zoom</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipleft', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-left</span>
|
<span class="text-3xl font-bold">flip-left</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'flipup', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">flip-y</span>
|
<span class="text-3xl font-bold">flip-y</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-30rem"></div>
|
<div class="h-[30rem]"></div>
|
||||||
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-4 justify-content-center align-items-center h-10rem w-10rem sm:h-15rem sm:w-15rem border-round animation-duration-1000 animation-ease-in-out">
|
<div v-animateonscroll="{ enterClass: 'scalein', leaveClass: 'fadeout' }" class="flex box shadow-lg justify-center items-center h-40 w-40 sm:h-60 sm:w-60 rounded animate-duration-1000 animate-ease-in-out">
|
||||||
<span class="text-3xl font-bold">scalein</span>
|
<span class="text-3xl font-bold">scalein</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>AutoComplete is used as a controlled component with <i>v-model</i> property. In addition, <i>suggestions</i> property and a <i>complete</i> method are required to query the results.</p>
|
<p>AutoComplete is used as a controlled component with <i>v-model</i> property. In addition, <i>suggestions</i> property and a <i>complete</i> method are required to query the results.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete disabled placeholder="Disabled" />
|
<AutoComplete disabled placeholder="Disabled" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete disabled placeholder="Disabled" />
|
<AutoComplete disabled placeholder="Disabled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete disabled placeholder="Disabled" />
|
<AutoComplete disabled placeholder="Disabled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<i>blank</i> is the default mode to send a query with an empty string whereas <i>current</i> setting sends a query with the current value of the input.
|
<i>blank</i> is the default mode to send a query with an empty string whereas <i>current</i> setting sends a query with the current value of the input.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -23,7 +23,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -48,7 +48,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" dropdown :suggestions="items" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
||||||
<label for="ac">Float Label</label>
|
<label for="ac">Float Label</label>
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
||||||
<label for="ac">Float Label</label>
|
<label for="ac">Float Label</label>
|
||||||
|
@ -52,7 +52,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
<AutoComplete v-model="value" inputId="ac" :suggestions="items" @complete="search" />
|
||||||
<label for="ac">Float Label</label>
|
<label for="ac">Float Label</label>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<i>forceSelection</i> to enforce that input is always from the suggestion list.
|
<i>forceSelection</i> to enforce that input is always from the suggestion list.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :service="['CountryService']" />
|
<DocSectionCode :code="code" :service="['CountryService']" />
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" forceSelection optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Option groups are specified with the <i>optionGroupLabel</i> and <i>optionGroupChildren</i> properties.</p>
|
<p>Option groups are specified with the <i>optionGroupLabel</i> and <i>optionGroupChildren</i> properties.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
||||||
<template #optiongroup="slotProps">
|
<template #optiongroup="slotProps">
|
||||||
<div class="flex align-items-center country-item">
|
<div class="flex items-center country-item">
|
||||||
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${slotProps.item.code.toLowerCase()} mr-2`" style="width: 18px" />
|
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${slotProps.item.code.toLowerCase()} mr-2`" style="width: 18px" />
|
||||||
<div>{{ slotProps.item.label }}</div>
|
<div>{{ slotProps.item.label }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,7 +60,7 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
||||||
<template #optiongroup="slotProps">
|
<template #optiongroup="slotProps">
|
||||||
<div class="flex align-items-center country-item">
|
<div class="flex items-center country-item">
|
||||||
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<div>{{ slotProps.item.label }}</div>
|
<div>{{ slotProps.item.label }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,10 +69,10 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
||||||
<template #optiongroup="slotProps">
|
<template #optiongroup="slotProps">
|
||||||
<div class="flex align-items-center country-item">
|
<div class="flex items-center country-item">
|
||||||
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<div>{{ slotProps.item.label }}</div>
|
<div>{{ slotProps.item.label }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -145,10 +145,10 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
<AutoComplete v-model="selectedCity" :suggestions="filteredCities" @complete="search" optionLabel="label" optionGroupLabel="label" optionGroupChildren="items" placeholder="Hint: type 'a'">
|
||||||
<template #optiongroup="slotProps">
|
<template #optiongroup="slotProps">
|
||||||
<div class="flex align-items-center country-item">
|
<div class="flex items-center country-item">
|
||||||
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img :alt="slotProps.item.label" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.item.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<div>{{ slotProps.item.label }}</div>
|
<div>{{ slotProps.item.label }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
<AutoComplete v-model="value" :suggestions="items" @complete="search" invalid />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Country object that has name and code fields such as <i>{name: "United States", code:"USA"}</i>.
|
Country object that has name and code fields such as <i>{name: "United States", code:"USA"}</i>.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :service="['CountryService']" />
|
<DocSectionCode :code="code" :service="['CountryService']" />
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -63,7 +63,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<i>chip</i>, <i>header</i> and <i>footer</i> slots are provided for further customization
|
<i>chip</i>, <i>header</i> and <i>footer</i> slots are provided for further customization
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-options-center">
|
<div class="flex align-options-center">
|
||||||
|
@ -39,7 +39,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-options-center">
|
<div class="flex align-options-center">
|
||||||
|
@ -83,7 +83,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
<AutoComplete v-model="selectedCountry" optionLabel="name" :suggestions="filteredCountries" @complete="search">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-options-center">
|
<div class="flex align-options-center">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<PrimeVueNuxtLink to="/virtualscroller">VirtualScroller</PrimeVueNuxtLink> documentation for more information about the configuration API.
|
<PrimeVueNuxtLink to="/virtualscroller">VirtualScroller</PrimeVueNuxtLink> documentation for more information about the configuration API.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -25,7 +25,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
<AutoComplete v-model="selectedItem" :suggestions="filteredItems" @complete="searchItems" :virtualScrollerOptions="{ itemSize: 38 }" optionLabel="label" dropdown />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Grouping is available by wrapping multiple Avatar components inside an AvatarGroup.</p>
|
<p>Grouping is available by wrapping multiple Avatar components inside an AvatarGroup.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AvatarGroup>
|
<AvatarGroup>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AvatarGroup>
|
<AvatarGroup>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
||||||
|
@ -50,7 +50,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<AvatarGroup>
|
<AvatarGroup>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" size="large" shape="circle" />
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" size="large" shape="circle" />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>A font icon is displayed as an Avatar with the <i>icon</i> property.</p>
|
<p>A font icon is displayed as an Avatar with the <i>icon</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Icon</h5>
|
<h5>Icon</h5>
|
||||||
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Icon</h5>
|
<h5>Icon</h5>
|
||||||
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
||||||
|
@ -76,7 +76,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Icon</h5>
|
<h5>Icon</h5>
|
||||||
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
<Avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Use the <i>image</i> property to display an image as an Avatar.</p>
|
<p>Use the <i>image</i> property to display an image as an Avatar.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Image</h5>
|
<h5>Image</h5>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Gravatar</h5>
|
<h5>Gravatar</h5>
|
||||||
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex align-items-center justify-content-center mr-2" size="xlarge" />
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,12 +37,12 @@ export default {
|
||||||
|
|
||||||
<Avatar v-badge.danger="4" class="p-overlay-badge" image="/images/organization/walter.jpg" size="xlarge" />
|
<Avatar v-badge.danger="4" class="p-overlay-badge" image="/images/organization/walter.jpg" size="xlarge" />
|
||||||
|
|
||||||
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex align-items-center justify-content-center mr-2" size="xlarge" />
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Image</h5>
|
<h5>Image</h5>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
|
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Gravatar</h5>
|
<h5>Gravatar</h5>
|
||||||
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex align-items-center justify-content-center mr-2" size="xlarge" />
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Image</h5>
|
<h5>Image</h5>
|
||||||
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
||||||
|
@ -85,7 +85,7 @@ export default {
|
||||||
|
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Gravatar</h5>
|
<h5>Gravatar</h5>
|
||||||
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex align-items-center justify-content-center mr-2" size="xlarge" />
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>A letter Avatar is defined with the <i>label</i> property.</p>
|
<p>A letter Avatar is defined with the <i>label</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Label</h5>
|
<h5>Label</h5>
|
||||||
<Avatar label="P" class="mr-2" size="xlarge" />
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
||||||
|
@ -45,7 +45,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Label</h5>
|
<h5>Label</h5>
|
||||||
<Avatar label="P" class="mr-2" size="xlarge" />
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
||||||
|
@ -73,7 +73,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="flex flex-wrap gap-5">
|
<div class="flex flex-wrap gap-8">
|
||||||
<div class="flex-auto">
|
<div class="flex-auto">
|
||||||
<h5>Label</h5>
|
<h5>Label</h5>
|
||||||
<Avatar label="P" class="mr-2" size="xlarge" />
|
<Avatar label="P" class="mr-2" size="xlarge" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Text to display is defined with the <i>value</i> property.</p>
|
<p>Text to display is defined with the <i>value</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Buttons have built-in support for badges to display a badge inline.</p>
|
<p>Buttons have built-in support for badges to display a badge inline.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Button type="button" label="Emails" badge="8" />
|
<Button type="button" label="Emails" badge="8" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Button type="button" label="Emails" badge="8" />
|
<Button type="button" label="Emails" badge="8" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Button type="button" label="Emails" badge="8" />
|
<Button type="button" label="Emails" badge="8" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
<Button type="button" label="Messages" icon="pi pi-users" severity="secondary" badge="4" badgeSeverity="info" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A Badge can be added to any element using the directive.</p>
|
<p>A Badge can be added to any element using the directive.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-4">
|
<div class="card flex flex-wrap justify-center gap-6">
|
||||||
<span v-badge="2">
|
<span v-badge="2">
|
||||||
<i class="pi pi-bell" style="font-size: 2rem" />
|
<i class="pi pi-bell" style="font-size: 2rem" />
|
||||||
</span>
|
</span>
|
||||||
|
@ -34,7 +34,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-4">
|
<div class="card flex flex-wrap justify-center gap-6">
|
||||||
<span v-badge="2">
|
<span v-badge="2">
|
||||||
<i class="pi pi-bell" style="font-size: 2rem" />
|
<i class="pi pi-bell" style="font-size: 2rem" />
|
||||||
</span>
|
</span>
|
||||||
|
@ -53,7 +53,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-4">
|
<div class="card flex flex-wrap justify-center gap-6">
|
||||||
<span v-badge="2">
|
<span v-badge="2">
|
||||||
<i class="pi pi-bell" style="font-size: 2rem" />
|
<i class="pi pi-bell" style="font-size: 2rem" />
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Severity defines the variant of a badge.</p>
|
<p>Severity defines the variant of a badge.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
<Badge value="6" severity="secondary"></Badge>
|
<Badge value="6" severity="secondary"></Badge>
|
||||||
<Badge value="8" severity="success"></Badge>
|
<Badge value="8" severity="success"></Badge>
|
||||||
|
@ -30,7 +30,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
<Badge value="6" severity="secondary"></Badge>
|
<Badge value="6" severity="secondary"></Badge>
|
||||||
<Badge value="8" severity="success"></Badge>
|
<Badge value="8" severity="success"></Badge>
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
<div class="card flex flex-wrap justify-center gap-2">
|
||||||
<Badge value="2"></Badge>
|
<Badge value="2"></Badge>
|
||||||
<Badge value="6" severity="secondary"></Badge>
|
<Badge value="6" severity="secondary"></Badge>
|
||||||
<Badge value="8" severity="success"></Badge>
|
<Badge value="8" severity="success"></Badge>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Use the <i>size</i> property to customize the dimensions of a Badge.</p>
|
<p>Use the <i>size</i> property to customize the dimensions of a Badge.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap justify-content-center align-items-end gap-2">
|
<div class="card flex flex-wrap justify-center items-end gap-2">
|
||||||
<Badge value="8" size="xlarge" severity="success"></Badge>
|
<Badge value="8" size="xlarge" severity="success"></Badge>
|
||||||
<Badge value="6" size="large" severity="warn"></Badge>
|
<Badge value="6" size="large" severity="warn"></Badge>
|
||||||
<Badge value="4" severity="info"></Badge>
|
<Badge value="4" severity="info"></Badge>
|
||||||
|
@ -24,7 +24,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center align-items-end gap-2">
|
<div class="card flex flex-wrap justify-center items-end gap-2">
|
||||||
<Badge value="8" size="xlarge" severity="success"></Badge>
|
<Badge value="8" size="xlarge" severity="success"></Badge>
|
||||||
<Badge value="6" size="large" severity="warn"></Badge>
|
<Badge value="6" size="large" severity="warn"></Badge>
|
||||||
<Badge value="4" severity="info"></Badge>
|
<Badge value="4" severity="info"></Badge>
|
||||||
|
@ -38,7 +38,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center align-items-end gap-2">
|
<div class="card flex flex-wrap justify-center items-end gap-2">
|
||||||
<Badge value="8" size="xlarge" severity="success"></Badge>
|
<Badge value="8" size="xlarge" severity="success"></Badge>
|
||||||
<Badge value="6" size="large" severity="warn"></Badge>
|
<Badge value="6" size="large" severity="warn"></Badge>
|
||||||
<Badge value="4" severity="info"></Badge>
|
<Badge value="4" severity="info"></Badge>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>The element to block should be placed as a child of BlockUI and <i>blocked</i> property is required to control the state.</p>
|
<p>The element to block should be placed as a child of BlockUI and <i>blocked</i> property is required to control the state.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
||||||
<Button label="Unblock" @click="blocked = false"></Button>
|
<Button label="Unblock" @click="blocked = false"></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
blocked: false,
|
blocked: false,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
||||||
<Button label="Unblock" @click="blocked = false"></Button>
|
<Button label="Unblock" @click="blocked = false"></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +42,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
||||||
<Button label="Unblock" @click="blocked = false"></Button>
|
<Button label="Unblock" @click="blocked = false"></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
<Button label="Block" @click="blocked = true" class="mr-2"></Button>
|
||||||
<Button label="Unblock" @click="blocked = false"></Button>
|
<Button label="Unblock" @click="blocked = false"></Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Breadcrumb requires a collection of menuitems as its <i>model</i>, the root item is defined with the <i>home</i> property.</p>
|
<p>Breadcrumb requires a collection of menuitems as its <i>model</i>, the root item is defined with the <i>home</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items" />
|
<Breadcrumb :home="home" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -22,7 +22,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items" />
|
<Breadcrumb :home="home" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -48,7 +48,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items" />
|
<Breadcrumb :home="home" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Items with navigation are defined with templating to be able to use a router link component, an external link or programmatic navigation.</p>
|
<p>Items with navigation are defined with templating to be able to use a router link component, an external link or programmatic navigation.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</a>
|
</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
||||||
<span class="text-color">{{ item.label }}</span>
|
<span class="text-surface-700 dark:text-surface-0">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
@ -40,14 +40,14 @@ export default {
|
||||||
</a>
|
</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
||||||
<span class="text-color">{{ item.label }}</span>
|
<span class="text-surface-700 dark:text-surface-0">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
|
@ -57,7 +57,7 @@ export default {
|
||||||
</a>
|
</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
||||||
<span class="text-color">{{ item.label }}</span>
|
<span class="text-surface-700 dark:text-surface-0">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
</a>
|
</a>
|
||||||
</router-link>
|
</router-link>
|
||||||
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
<a v-else :href="item.url" :target="item.target" v-bind="props.action">
|
||||||
<span class="text-color">{{ item.label }}</span>
|
<span class="text-surface-700 dark:text-surface-0">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Custom content can be placed inside the items using the <i>item</i> template. The divider between the items has its own <i>separator</i> template.</p>
|
<p>Custom content can be placed inside the items using the <i>item</i> template. The divider between the items has its own <i>separator</i> template.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item }">
|
<template #item="{ item }">
|
||||||
<a class="cursor-pointer" :href="item.url">
|
<a class="cursor-pointer" :href="item.url">
|
||||||
|
@ -34,7 +34,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item }">
|
<template #item="{ item }">
|
||||||
<a class="cursor-pointer" :href="item.url">
|
<a class="cursor-pointer" :href="item.url">
|
||||||
|
@ -59,7 +59,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Breadcrumb :home="home" :model="items">
|
<Breadcrumb :home="home" :model="items">
|
||||||
<template #item="{ item }">
|
<template #item="{ item }">
|
||||||
<a class="cursor-pointer" :href="item.url">
|
<a class="cursor-pointer" :href="item.url">
|
||||||
|
|
|
@ -47,7 +47,7 @@ export default {
|
||||||
|
|
||||||
<Button class="youtube p-0" aria-label="Youtube">
|
<Button class="youtube p-0" aria-label="Youtube">
|
||||||
<i class="pi pi-youtube px-2"></i>
|
<i class="pi pi-youtube px-2"></i>
|
||||||
<span class="px-3">Youtube</span>
|
<span class="px-4">Youtube</span>
|
||||||
</Button>
|
</Button>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Buttons have built-in badge support with <i>badge</i> and <i>badgeSeverity</i> properties.</p>
|
<p>Buttons have built-in badge support with <i>badge</i> and <i>badgeSeverity</i> properties.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button type="button" label="Emails" badge="2" />
|
<Button type="button" label="Emails" badge="2" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button type="button" label="Emails" badge="2" />
|
<Button type="button" label="Emails" badge="2" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button type="button" label="Emails" badge="2" />
|
<Button type="button" label="Emails" badge="2" />
|
||||||
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
<Button type="button" label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" outlined />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Text to display on a button is defined with the <i>label</i> property.</p>
|
<p>Text to display on a button is defined with the <i>label</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" />
|
<Button label="Submit" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" />
|
<Button label="Submit" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" />
|
<Button label="Submit" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Multiple buttons are grouped when wrapped inside an element with <i>ButtonGroup</i> component.</p>
|
<p>Multiple buttons are grouped when wrapped inside an element with <i>ButtonGroup</i> component.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button label="Save" icon="pi pi-check" />
|
<Button label="Save" icon="pi pi-check" />
|
||||||
<Button label="Delete" icon="pi pi-trash" />
|
<Button label="Delete" icon="pi pi-trash" />
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button label="Save" icon="pi pi-check" />
|
<Button label="Save" icon="pi pi-check" />
|
||||||
<Button label="Delete" icon="pi pi-trash" />
|
<Button label="Delete" icon="pi pi-trash" />
|
||||||
|
@ -40,7 +40,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button label="Save" icon="pi pi-check" />
|
<Button label="Save" icon="pi pi-check" />
|
||||||
<Button label="Delete" icon="pi pi-trash" />
|
<Button label="Delete" icon="pi pi-trash" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" disabled />
|
<Button label="Submit" disabled />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" disabled />
|
<Button label="Submit" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button label="Submit" disabled />
|
<Button label="Submit" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Buttons can have icons without labels.</p>
|
<p>Buttons can have icons without labels.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" aria-label="Filter" />
|
<Button icon="pi pi-check" aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3">
|
<div class="flex flex-wrap justify-center gap-4">
|
||||||
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
||||||
|
@ -105,7 +105,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" aria-label="Filter" />
|
<Button icon="pi pi-check" aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
||||||
|
@ -115,7 +115,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
||||||
|
@ -125,7 +125,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
||||||
|
@ -135,7 +135,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
||||||
|
@ -145,7 +145,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3">
|
<div class="flex flex-wrap justify-center gap-4">
|
||||||
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
||||||
|
@ -163,7 +163,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" aria-label="Filter" />
|
<Button icon="pi pi-check" aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" aria-label="Search" />
|
||||||
|
@ -173,7 +173,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
<Button icon="pi pi-check" rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded aria-label="Search" />
|
||||||
|
@ -183,7 +183,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
<Button icon="pi pi-check" rounded outlined aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" rounded outlined aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" rounded outlined aria-label="Search" />
|
||||||
|
@ -193,7 +193,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" rounded outlined aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3 mb-4">
|
<div class="flex flex-wrap justify-center gap-4 mb-6">
|
||||||
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text raised rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text raised rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text raised rounded aria-label="Search" />
|
||||||
|
@ -203,7 +203,7 @@ export default {
|
||||||
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
<Button icon="pi pi-times" severity="danger" text raised rounded aria-label="Cancel" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-wrap justify-content-center gap-3">
|
<div class="flex flex-wrap justify-center gap-4">
|
||||||
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
<Button icon="pi pi-check" text rounded aria-label="Filter" />
|
||||||
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
<Button icon="pi pi-bookmark" severity="secondary" text rounded aria-label="Bookmark" />
|
||||||
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
<Button icon="pi pi-search" severity="success" text rounded aria-label="Search" />
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Icon of a button is specified with <i>icon</i> property and position is configured using <i>iconPos</i> attribute.</p>
|
<p>Icon of a button is specified with <i>icon</i> property and position is configured using <i>iconPos</i> attribute.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
<div class="card flex flex-wrap gap-4 justify-center">
|
||||||
<Button icon="pi pi-check" class="align-self-center" aria-label="Submit" />
|
<Button icon="pi pi-check" class="self-center" aria-label="Submit" />
|
||||||
<Button label="Submit" icon="pi pi-check" class="align-self-center" />
|
<Button label="Submit" icon="pi pi-check" class="self-center" />
|
||||||
<Button label="Submit" icon="pi pi-check" iconPos="right" class="align-self-center" />
|
<Button label="Submit" icon="pi pi-check" iconPos="right" class="self-center" />
|
||||||
<Button label="Submit" icon="pi pi-check" iconPos="top" />
|
<Button label="Submit" icon="pi pi-check" iconPos="top" />
|
||||||
<Button label="Submit" icon="pi pi-check" iconPos="bottom" />
|
<Button label="Submit" icon="pi pi-check" iconPos="bottom" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
<div class="card flex flex-wrap gap-4 justify-center">
|
||||||
<Button icon="pi pi-check" aria-label="Submit" />
|
<Button icon="pi pi-check" aria-label="Submit" />
|
||||||
<Button label="Submit" icon="pi pi-check" />
|
<Button label="Submit" icon="pi pi-check" />
|
||||||
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
||||||
|
@ -40,7 +40,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap gap-3 justify-content-center">
|
<div class="card flex flex-wrap gap-4 justify-center">
|
||||||
<Button icon="pi pi-check" aria-label="Submit" />
|
<Button icon="pi pi-check" aria-label="Submit" />
|
||||||
<Button label="Submit" icon="pi pi-check" />
|
<Button label="Submit" icon="pi pi-check" />
|
||||||
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
<Button label="Submit" icon="pi pi-check" iconPos="right" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A button can be displayed as a link element when the <i>link</i> property is present. If you need to use buttons for navigation, wrap the button inside a component like <i>NuxtLink</i> or <i>router-link</i> depending on your router.</p>
|
<p>A button can be displayed as a link element when the <i>link</i> property is present. If you need to use buttons for navigation, wrap the button inside a component like <i>NuxtLink</i> or <i>router-link</i> depending on your router.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center gap-3">
|
<div class="card flex justify-center gap-4">
|
||||||
<Button label="Link" link />
|
<Button label="Link" link />
|
||||||
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener" tabindex="-1">
|
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener" tabindex="-1">
|
||||||
<Button label="External" />
|
<Button label="External" />
|
||||||
|
@ -30,7 +30,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center gap-3">
|
<div class="card flex justify-center gap-4">
|
||||||
<Button label="Link" link />
|
<Button label="Link" link />
|
||||||
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener">
|
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener">
|
||||||
<Button label="External" />
|
<Button label="External" />
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center gap-3">
|
<div class="card flex justify-center gap-4">
|
||||||
<Button label="Link" link />
|
<Button label="Link" link />
|
||||||
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener">
|
<NuxtLink to="https://vuejs.org/" target="_blank" rel="noopener">
|
||||||
<Button label="External" />
|
<Button label="External" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Busy state is controlled with the <i>loading</i> property.</p>
|
<p>Busy state is controlled with the <i>loading</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button type="button" label="Search" icon="pi pi-check" :loading="loading" @click="load" />
|
<Button type="button" label="Search" icon="pi pi-check" :loading="loading" @click="load" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button type="button" label="Search" icon="pi pi-search" :loading="loading" @click="load" />
|
<Button type="button" label="Search" icon="pi pi-search" :loading="loading" @click="load" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button type="button" label="Search" icon="pi pi-search" :loading="loading" @click="load" />
|
<Button type="button" label="Search" icon="pi pi-search" :loading="loading" @click="load" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Outlined buttons display a border without a background initially.</p>
|
<p>Outlined buttons display a border without a background initially.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" outlined />
|
<Button label="Primary" outlined />
|
||||||
<Button label="Secondary" severity="secondary" outlined />
|
<Button label="Secondary" severity="secondary" outlined />
|
||||||
<Button label="Success" severity="success" outlined />
|
<Button label="Success" severity="success" outlined />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" outlined />
|
<Button label="Primary" outlined />
|
||||||
<Button label="Secondary" severity="secondary" outlined />
|
<Button label="Secondary" severity="secondary" outlined />
|
||||||
<Button label="Success" severity="success" outlined />
|
<Button label="Success" severity="success" outlined />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" outlined />
|
<Button label="Primary" outlined />
|
||||||
<Button label="Secondary" severity="secondary" outlined />
|
<Button label="Secondary" severity="secondary" outlined />
|
||||||
<Button label="Success" severity="success" outlined />
|
<Button label="Success" severity="success" outlined />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Raised buttons display a shadow to indicate elevation.</p>
|
<p>Raised buttons display a shadow to indicate elevation.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" raised />
|
<Button label="Primary" raised />
|
||||||
<Button label="Secondary" severity="secondary" raised />
|
<Button label="Secondary" severity="secondary" raised />
|
||||||
<Button label="Success" severity="success" raised />
|
<Button label="Success" severity="success" raised />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" raised />
|
<Button label="Primary" raised />
|
||||||
<Button label="Secondary" severity="secondary" raised />
|
<Button label="Secondary" severity="secondary" raised />
|
||||||
<Button label="Success" severity="success" raised />
|
<Button label="Success" severity="success" raised />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" raised />
|
<Button label="Primary" raised />
|
||||||
<Button label="Secondary" severity="secondary" raised />
|
<Button label="Secondary" severity="secondary" raised />
|
||||||
<Button label="Success" severity="success" raised />
|
<Button label="Success" severity="success" raised />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Text buttons can be displayed as raised as well for elevation.</p>
|
<p>Text buttons can be displayed as raised as well for elevation.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text raised />
|
<Button label="Primary" text raised />
|
||||||
<Button label="Secondary" severity="secondary" text raised />
|
<Button label="Secondary" severity="secondary" text raised />
|
||||||
<Button label="Success" severity="success" text raised />
|
<Button label="Success" severity="success" text raised />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text raised />
|
<Button label="Primary" text raised />
|
||||||
<Button label="Secondary" severity="secondary" text raised />
|
<Button label="Secondary" severity="secondary" text raised />
|
||||||
<Button label="Success" severity="success" text raised />
|
<Button label="Success" severity="success" text raised />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text raised />
|
<Button label="Primary" text raised />
|
||||||
<Button label="Secondary" severity="secondary" text raised />
|
<Button label="Secondary" severity="secondary" text raised />
|
||||||
<Button label="Success" severity="success" text raised />
|
<Button label="Success" severity="success" text raised />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Rounded buttons have a circular border radius.</p>
|
<p>Rounded buttons have a circular border radius.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" rounded />
|
<Button label="Primary" rounded />
|
||||||
<Button label="Secondary" severity="secondary" rounded />
|
<Button label="Secondary" severity="secondary" rounded />
|
||||||
<Button label="Success" severity="success" rounded />
|
<Button label="Success" severity="success" rounded />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" rounded />
|
<Button label="Primary" rounded />
|
||||||
<Button label="Secondary" severity="secondary" rounded />
|
<Button label="Secondary" severity="secondary" rounded />
|
||||||
<Button label="Success" severity="success" rounded />
|
<Button label="Success" severity="success" rounded />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" rounded />
|
<Button label="Primary" rounded />
|
||||||
<Button label="Secondary" severity="secondary" rounded />
|
<Button label="Secondary" severity="secondary" rounded />
|
||||||
<Button label="Success" severity="success" rounded />
|
<Button label="Success" severity="success" rounded />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>The <i>severity</i> property defines the variant of a button.</p>
|
<p>The <i>severity</i> property defines the variant of a button.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" />
|
<Button label="Primary" />
|
||||||
<Button label="Secondary" severity="secondary" />
|
<Button label="Secondary" severity="secondary" />
|
||||||
<Button label="Success" severity="success" />
|
<Button label="Success" severity="success" />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" />
|
<Button label="Primary" />
|
||||||
<Button label="Secondary" severity="secondary" />
|
<Button label="Secondary" severity="secondary" />
|
||||||
<Button label="Success" severity="success" />
|
<Button label="Success" severity="success" />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" />
|
<Button label="Primary" />
|
||||||
<Button label="Secondary" severity="secondary" />
|
<Button label="Secondary" severity="secondary" />
|
||||||
<Button label="Success" severity="success" />
|
<Button label="Success" severity="success" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Button provides <i>small</i> and <i>large</i> sizes as alternatives to the standard.</p>
|
<p>Button provides <i>small</i> and <i>large</i> sizes as alternatives to the standard.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap items-center justify-center gap-4">
|
||||||
<Button label="Small" icon="pi pi-check" size="small" />
|
<Button label="Small" icon="pi pi-check" size="small" />
|
||||||
<Button label="Normal" icon="pi pi-check" />
|
<Button label="Normal" icon="pi pi-check" />
|
||||||
<Button label="Large" icon="pi pi-check" size="large" />
|
<Button label="Large" icon="pi pi-check" size="large" />
|
||||||
|
@ -22,7 +22,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap items-center justify-center gap-4">
|
||||||
<Button label="Small" icon="pi pi-check" size="small" />
|
<Button label="Small" icon="pi pi-check" size="small" />
|
||||||
<Button label="Normal" icon="pi pi-check" />
|
<Button label="Normal" icon="pi pi-check" />
|
||||||
<Button label="Large" icon="pi pi-check" size="large" />
|
<Button label="Large" icon="pi pi-check" size="large" />
|
||||||
|
@ -34,7 +34,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap items-center justify-center gap-4">
|
||||||
<Button label="Small" icon="pi pi-check" size="small" />
|
<Button label="Small" icon="pi pi-check" size="small" />
|
||||||
<Button label="Normal" icon="pi pi-check" />
|
<Button label="Normal" icon="pi pi-check" />
|
||||||
<Button label="Large" icon="pi pi-check" size="large" />
|
<Button label="Large" icon="pi pi-check" size="large" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Custom content inside a button is defined as children.</p>
|
<p>Custom content inside a button is defined as children.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button outlined class="border-2">
|
<Button outlined class="border-2">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
|
@ -34,7 +34,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button outlined class="border-2">
|
<Button outlined class="border-2">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
|
@ -55,7 +55,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button outlined class="border-2">
|
<Button outlined class="border-2">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Text buttons are displayed as textual elements.</p>
|
<p>Text buttons are displayed as textual elements.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text />
|
<Button label="Primary" text />
|
||||||
<Button label="Secondary" severity="secondary" text />
|
<Button label="Secondary" severity="secondary" text />
|
||||||
<Button label="Success" severity="success" text />
|
<Button label="Success" severity="success" text />
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text />
|
<Button label="Primary" text />
|
||||||
<Button label="Secondary" severity="secondary" text />
|
<Button label="Secondary" severity="secondary" text />
|
||||||
<Button label="Success" severity="success" text />
|
<Button label="Success" severity="success" text />
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center flex-wrap gap-3">
|
<div class="card flex justify-center flex-wrap gap-4">
|
||||||
<Button label="Primary" text />
|
<Button label="Primary" text />
|
||||||
<Button label="Secondary" severity="secondary" text />
|
<Button label="Secondary" severity="secondary" text />
|
||||||
<Button label="Success" severity="success" text />
|
<Button label="Success" severity="success" text />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Card provides <i>header</i>, <i>title</i>, <i>subtitle</i>, <i>content</i> and <i>footer</i> as the named templates to place content.</p>
|
<p>Card provides <i>header</i>, <i>title</i>, <i>subtitle</i>, <i>content</i> and <i>footer</i> as the named templates to place content.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="mb-3 p-5 flex align-items-center justify-content-center">
|
<div class="mb-4 p-8 flex items-center justify-center">
|
||||||
<Card style="width: 25rem; overflow: hidden">
|
<Card style="width: 25rem; overflow: hidden">
|
||||||
<template #header>
|
<template #header>
|
||||||
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/card-vue.jpg" />
|
<img alt="user header" class="w-full" src="https://primefaces.org/cdn/primevue/images/card-vue.jpg" />
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="flex gap-3 mt-1">
|
<div class="flex gap-4 mt-1">
|
||||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||||
<Button label="Save" class="w-full" />
|
<Button label="Save" class="w-full" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,7 +45,7 @@ export default {
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="flex gap-3 mt-1">
|
<div class="flex gap-4 mt-1">
|
||||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||||
<Button label="Save" class="w-full" />
|
<Button label="Save" class="w-full" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -67,7 +67,7 @@ export default {
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="flex gap-3 mt-1">
|
<div class="flex gap-4 mt-1">
|
||||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||||
<Button label="Save" class="w-full" />
|
<Button label="Save" class="w-full" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -93,7 +93,7 @@ export default {
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="flex gap-3 mt-1">
|
<div class="flex gap-4 mt-1">
|
||||||
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
<Button label="Cancel" severity="secondary" outlined class="w-full" />
|
||||||
<Button label="Save" class="w-full" />
|
<Button label="Save" class="w-full" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A simple Card is created with a <i>title</i> property along with the content as children.</p>
|
<p>A simple Card is created with a <i>title</i> property along with the content as children.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="mb-3 p-5">
|
<div class="mb-4 p-8">
|
||||||
<Card>
|
<Card>
|
||||||
<template #title>Simple Card</template>
|
<template #title>Simple Card</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -61,15 +61,15 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -85,15 +85,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -165,15 +165,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="3" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -61,15 +61,15 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -85,15 +85,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -165,15 +165,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions" circular :autoplayInterval="3000">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
|
|
@ -9,15 +9,15 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -64,15 +64,15 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -88,15 +88,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -168,15 +168,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
<Carousel :value="products" :numVisible="3" :numScroll="1" :responsiveOptions="responsiveOptions">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex align-items-center">
|
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex items-center">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left: 5px; top: 5px" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -37,17 +37,17 @@ export default {
|
||||||
products: null,
|
products: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex align-items-center">
|
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex items-center">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -61,17 +61,17 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex align-items-center">
|
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex items-center">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
@ -119,17 +119,17 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex align-items-center">
|
<Carousel :value="products" :numVisible="1" :numScroll="1" orientation="vertical" verticalViewPortHeight="330px" containerClass="flex items-center">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="border-1 surface-border border-round m-2 p-3">
|
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4">
|
||||||
<div class="mb-3">
|
<div class="mb-4">
|
||||||
<div class="relative mx-auto">
|
<div class="relative mx-auto">
|
||||||
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full border-round" />
|
<img :src="'https://primefaces.org/cdn/primevue/images/product/' + slotProps.data.image" :alt="slotProps.data.name" class="w-full rounded" />
|
||||||
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
<Tag :value="slotProps.data.inventoryStatus" :severity="getSeverity(slotProps.data.inventoryStatus)" class="absolute" style="left:5px; top: 5px"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3 font-medium">{{ slotProps.data.name }}</div>
|
<div class="mb-4 font-medium">{{ slotProps.data.name }}</div>
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-between items-center">
|
||||||
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
<div class="mt-0 font-semibold text-xl">\${{ slotProps.data.price }}</div>
|
||||||
<span>
|
<span>
|
||||||
<Button icon="pi pi-heart" severity="secondary" outlined />
|
<Button icon="pi pi-heart" severity="secondary" outlined />
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
required to define the property that refers to the children of a group. Note that order of the <i>optionGroupChildren</i> matters as it should correspond to the data hierarchy.
|
required to define the property that refers to the children of a group. Note that order of the <i>optionGroupChildren</i> matters as it should correspond to the data hierarchy.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -97,7 +97,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -189,7 +189,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
<CascadeSelect disabled placeholder="Disabled" style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" variant="filled" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
<p>A floating label appears on top of the input field when focused. Visit <PrimeVueNuxtLink to="/floatlabel">FloatLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
<label for="cs-city">City</label>
|
<label for="cs-city">City</label>
|
||||||
|
@ -100,7 +100,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
|
@ -195,7 +195,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<FloatLabel>
|
<FloatLabel>
|
||||||
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" inputId="cs-city" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -186,7 +186,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" invalid :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Loading state can be used <i>loading</i> property.</p>
|
<p>Loading state can be used <i>loading</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -18,7 +18,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
<CascadeSelect loading placeholder="Loading..." style="min-width: 14rem" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
required to define the property that refers to the children of a group. Note that order of the <i>optionGroupChildren</i> matters as it should correspond to the data hierarchy.
|
required to define the property that refers to the children of a group. Note that order of the <i>optionGroupChildren</i> matters as it should correspond to the data hierarchy.
|
||||||
</p>
|
</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name" :optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${slotProps.option.code.toLowerCase()} mr-2`" style="width: 18px" />
|
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${slotProps.option.code.toLowerCase()} mr-2`" style="width: 18px" />
|
||||||
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
||||||
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
||||||
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
||||||
|
@ -115,11 +115,11 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
||||||
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
||||||
|
@ -216,11 +216,11 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
<CascadeSelect v-model="selectedCity" :options="countries" optionLabel="cname" optionGroupLabel="name"
|
||||||
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
:optionGroupChildren="['states', 'cities']" style="min-width: 14rem" placeholder="Select a City">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
<img v-if="slotProps.option.states" :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
|
||||||
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
<i v-if="slotProps.option.cities" class="pi pi-compass mr-2"></i>
|
||||||
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
<i v-if="slotProps.option.cname" class="pi pi-map-marker mr-2"></i>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Different chart types can be combined in the same graph usign the <i>type</i> option of a dataset.</p>
|
<p>Different chart types can be combined in the same graph usign the <i>type</i> option of a dataset.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A doughnut chart is a variant of the pie chart, with a blank center allowing for additional information about the data as a whole to be included.</p>
|
<p>A doughnut chart is a variant of the pie chart, with a blank center allowing for additional information about the data as a whole to be included.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="doughnut" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>A bar chart is rendered horizontally when <i>indexAxis</i> option is set as <i>y</i>.</p>
|
<p>A bar chart is rendered horizontally when <i>indexAxis</i> option is set as <i>y</i>.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>A line chart or line graph is a type of chart which displays information as a series of data points called 'markers' connected by straight line segments.</p>
|
<p>A line chart or line graph is a type of chart which displays information as a series of data points called 'markers' connected by straight line segments.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Various styles of a line series can be customized to display customizations like an area chart.</p>
|
<p>Various styles of a line series can be customized to display customizations like an area chart.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Multiple axes can be added using the <i>scales</i> option.</p>
|
<p>Multiple axes can be added using the <i>scales</i> option.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="line" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="line" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A pie chart is a circular statistical graphic which is divided into slices to illustrate numerical proportion.</p>
|
<p>A pie chart is a circular statistical graphic which is divided into slices to illustrate numerical proportion.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -76,8 +76,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="pie" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.</p>
|
<p>Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -89,8 +89,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="polarArea" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.</p>
|
<p>A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-30rem" />
|
<Chart type="radar" :data="chartData" :options="chartOptions" class="w-full md:w-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Bars can be stacked on top of each other when <i>stacked</i> option of a scale is enabled.</p>
|
<p>Bars can be stacked on top of each other when <i>stacked</i> option of a scale is enabled.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>A bar chart or bar graph is a chart that presents grouped data with rectangular bars with lengths proportional to the values that they represent.</p>
|
<p>A bar chart or bar graph is a chart that presents grouped data with rectangular bars with lengths proportional to the values that they represent.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
<DocSectionCode :code="code" :dependencies="{ 'chart.js': '3.3.2' }" component="Chart" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,12 +19,12 @@ export default {
|
||||||
chartOptions: null,
|
chartOptions: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-30rem" />
|
<Chart type="bar" :data="chartData" :options="chartOptions" class="h-[30rem]" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Binary checkbox is used as a controlled input with <i>v-model</i> and <i>binary</i> properties.</p>
|
<p>Binary checkbox is used as a controlled input with <i>v-model</i> and <i>binary</i> properties.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" :binary="true" />
|
<Checkbox v-model="checked" :binary="true" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" :binary="true" />
|
<Checkbox v-model="checked" :binary="true" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" :binary="true" />
|
<Checkbox v-model="checked" :binary="true" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" disabled />
|
<Checkbox v-model="checked" disabled />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" disabled />
|
<Checkbox v-model="checked" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" disabled />
|
<Checkbox v-model="checked" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Checkboxes can be generated using a list of values.</p>
|
<p>Checkboxes can be generated using a list of values.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<div class="flex flex-column gap-3">
|
<div class="flex flex-col gap-4">
|
||||||
<div v-for="category of categories" :key="category.key" class="flex align-items-center">
|
<div v-for="category of categories" :key="category.key" class="flex items-center">
|
||||||
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
||||||
<label :for="category.key" class="ml-2">{{ category.name }}</label>
|
<label :for="category.key" class="ml-2">{{ category.name }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,16 +26,16 @@ export default {
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<div v-for="category of categories" :key="category.key" class="flex align-items-center">
|
<div v-for="category of categories" :key="category.key" class="flex items-center">
|
||||||
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
||||||
<label :for="category.key">{{ category.name }}</label>
|
<label :for="category.key">{{ category.name }}</label>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<div class="flex flex-column gap-3">
|
<div class="flex flex-col gap-4">
|
||||||
<div v-for="category of categories" :key="category.key" class="flex align-items-center">
|
<div v-for="category of categories" :key="category.key" class="flex items-center">
|
||||||
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
||||||
<label :for="category.key">{{ category.name }}</label>
|
<label :for="category.key">{{ category.name }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,9 +61,9 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<div class="flex flex-column gap-3">
|
<div class="flex flex-col gap-4">
|
||||||
<div v-for="category of categories" :key="category.key" class="flex align-items-center">
|
<div v-for="category of categories" :key="category.key" class="flex items-center">
|
||||||
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
<Checkbox v-model="selectedCategories" :inputId="category.key" name="category" :value="category.name" />
|
||||||
<label :for="category.key">{{ category.name }}</label>
|
<label :for="category.key">{{ category.name }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" binary variant="filled" />
|
<Checkbox v-model="checked" binary variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" binary variant="filled" />
|
<Checkbox v-model="checked" binary variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" binary variant="filled" />
|
<Checkbox v-model="checked" binary variant="filled" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Multiple checkboxes can be grouped together.</p>
|
<p>Multiple checkboxes can be grouped together.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-3">
|
<div class="card flex flex-wrap justify-center gap-4">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
||||||
<label for="ingredient1" class="ml-2"> Cheese </label>
|
<label for="ingredient1" class="ml-2"> Cheese </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
||||||
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
||||||
<label for="ingredient3" class="ml-2"> Pepper </label>
|
<label for="ingredient3" class="ml-2"> Pepper </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
||||||
<label for="ingredient4" class="ml-2"> Onion </label>
|
<label for="ingredient4" class="ml-2"> Onion </label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,20 +30,20 @@ export default {
|
||||||
pizza: null,
|
pizza: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<div class="card flex flex-wrap justify-content-center gap-3">
|
<div class="card flex flex-wrap justify-center gap-4">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
||||||
<label for="ingredient1" class="ml-2"> Cheese </label>
|
<label for="ingredient1" class="ml-2"> Cheese </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
||||||
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
||||||
<label for="ingredient3" class="ml-2"> Pepper </label>
|
<label for="ingredient3" class="ml-2"> Pepper </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
||||||
<label for="ingredient4" class="ml-2"> Onion </label>
|
<label for="ingredient4" class="ml-2"> Onion </label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,20 +51,20 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-3">
|
<div class="card flex flex-wrap justify-center gap-4">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
||||||
<label for="ingredient1" class="ml-2"> Cheese </label>
|
<label for="ingredient1" class="ml-2"> Cheese </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
||||||
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
||||||
<label for="ingredient3" class="ml-2"> Pepper </label>
|
<label for="ingredient3" class="ml-2"> Pepper </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
||||||
<label for="ingredient4" class="ml-2"> Onion </label>
|
<label for="ingredient4" class="ml-2"> Onion </label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,20 +83,20 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap justify-content-center gap-3">
|
<div class="card flex flex-wrap justify-center gap-4">
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
<Checkbox v-model="pizza" inputId="ingredient1" name="pizza" value="Cheese" />
|
||||||
<label for="ingredient1" class="ml-2"> Cheese </label>
|
<label for="ingredient1" class="ml-2"> Cheese </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
<Checkbox v-model="pizza" inputId="ingredient2" name="pizza" value="Mushroom" />
|
||||||
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
<label for="ingredient2" class="ml-2"> Mushroom </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
<Checkbox v-model="pizza" inputId="ingredient3" name="pizza" value="Pepper" />
|
||||||
<label for="ingredient3" class="ml-2"> Pepper </label>
|
<label for="ingredient3" class="ml-2"> Pepper </label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-center">
|
<div class="flex items-center">
|
||||||
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
<Checkbox v-model="pizza" inputId="ingredient4" name="pizza" value="Onion" />
|
||||||
<label for="ingredient4" class="ml-2"> Onion </label>
|
<label for="ingredient4" class="ml-2"> Onion </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>indeterminate</i> is present, the checkbox masks the actual value visually.</p>
|
<p>When <i>indeterminate</i> is present, the checkbox masks the actual value visually.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" indeterminate binary />
|
<Checkbox v-model="checked" indeterminate binary />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" indeterminate binary />
|
<Checkbox v-model="checked" indeterminate binary />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" indeterminate binary />
|
<Checkbox v-model="checked" indeterminate binary />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
<p>Invalid state is displayed using the <i>invalid</i> prop to indicate a failed validation. You can use this style when integrating with form validation libraries.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" invalid binary />
|
<Checkbox v-model="checked" invalid binary />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" invalid binary />
|
<Checkbox v-model="checked" invalid binary />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Checkbox v-model="checked" invalid binary />
|
<Checkbox v-model="checked" invalid binary />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
<p>The default slot allows displaying custom content inside a chip.</p>
|
<p>The default slot allows displaying custom content inside a chip.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chip class="py-0 pl-0 pr-3">
|
<Chip class="py-0 pl-0 pr-4">
|
||||||
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
|
<span class="bg-primary text-primary-contrast rounded-full w-8 h-8 flex items-center justify-center">P</span>
|
||||||
<span class="ml-2 font-medium">PRIME</span>
|
<span class="ml-2 font-medium">PRIME</span>
|
||||||
</Chip>
|
</Chip>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,16 +17,16 @@ export default {
|
||||||
return {
|
return {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Chip class="py-0 pl-0 pr-3">
|
<Chip class="py-0 pl-0 pr-4">
|
||||||
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
|
<span class="bg-primary text-primary-contrast rounded-full w-8 h-8 flex items-center justify-center">P</span>
|
||||||
<span class="ml-2 font-medium">PRIME</span>
|
<span class="ml-2 font-medium">PRIME</span>
|
||||||
</Chip>
|
</Chip>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chip class="py-0 pl-0 pr-3">
|
<Chip class="py-0 pl-0 pr-4">
|
||||||
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
|
<span class="bg-primary text-primary-contrast rounded-full w-8 h-8 flex items-center justify-center">P</span>
|
||||||
<span class="ml-2 font-medium">PRIME</span>
|
<span class="ml-2 font-medium">PRIME</span>
|
||||||
</Chip>
|
</Chip>
|
||||||
</div>
|
</div>
|
||||||
|
@ -39,8 +39,8 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Chip class="py-0 pl-0 pr-3">
|
<Chip class="py-0 pl-0 pr-4">
|
||||||
<span class="bg-primary border-circle w-2rem h-2rem flex align-items-center justify-content-center">P</span>
|
<span class="bg-primary text-primary-contrast rounded-full w-8 h-8 flex items-center justify-center">P</span>
|
||||||
<span class="ml-2 font-medium">PRIME</span>
|
<span class="ml-2 font-medium">PRIME</span>
|
||||||
</Chip>
|
</Chip>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<span class="inline-flex flex-column">
|
<span class="inline-flex flex-col">
|
||||||
<i class="mb-1">up arrow</i>
|
<i class="mb-1">up arrow</i>
|
||||||
<i>down arrow</i>
|
<i>down arrow</i>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>ColorPicker is used as a controlled input with <i>v-model</i> property.</p>
|
<p>ColorPicker is used as a controlled input with <i>v-model</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" />
|
<ColorPicker v-model="color" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" />
|
<ColorPicker v-model="color" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" />
|
<ColorPicker v-model="color" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" disabled />
|
<ColorPicker v-model="color" disabled />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" disabled />
|
<ColorPicker v-model="color" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" disabled />
|
<ColorPicker v-model="color" disabled />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Default color format to use in value binding is <i>hex</i> and other possible values can be <i>rgb</i> and <i>hsb</i> using the <i>format</i> property.</p>
|
<p>Default color format to use in value binding is <i>hex</i> and other possible values can be <i>rgb</i> and <i>hsb</i> using the <i>format</i> property.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap gap-3">
|
<div class="card flex flex-wrap gap-4">
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
||||||
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-3" />
|
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-4" />
|
||||||
<span>{{ colorHEX }}</span>
|
<span>{{ colorHEX }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
||||||
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-3" />
|
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorRGB) }}</span>
|
<span>{{ JSON.stringify(colorRGB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
||||||
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-3" />
|
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorHSB) }}</span>
|
<span>{{ JSON.stringify(colorHSB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,26 +31,26 @@ export default {
|
||||||
colorHSB: { h: 239, s: 59, b: 95 },
|
colorHSB: { h: 239, s: 59, b: 95 },
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-3" />
|
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-4" />
|
||||||
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-3" />
|
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-4" />
|
||||||
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-3" />
|
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-4" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap gap-3">
|
<div class="card flex flex-wrap gap-4">
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
||||||
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-3" />
|
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-4" />
|
||||||
<span>{{ colorHEX }}</span>
|
<span>{{ colorHEX }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
||||||
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-3" />
|
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorRGB) }}</span>
|
<span>{{ JSON.stringify(colorRGB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
||||||
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-3" />
|
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorHSB) }}</span>
|
<span>{{ JSON.stringify(colorHSB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,20 +70,20 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap gap-3">
|
<div class="card flex flex-wrap gap-4">
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
|
||||||
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-3" />
|
<ColorPicker v-model="colorHEX" inputId="cp-hex" format="hex" class="mb-4" />
|
||||||
<span>{{ colorHEX }}</span>
|
<span>{{ colorHEX }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
|
||||||
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-3" />
|
<ColorPicker v-model="colorRGB" inputId="cp-rgb" format="rgb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorRGB) }}</span>
|
<span>{{ JSON.stringify(colorRGB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 flex flex-column align-items-center">
|
<div class="flex-1 flex flex-col items-center">
|
||||||
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
|
||||||
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-3" />
|
<ColorPicker v-model="colorHSB" inputId="cp-hsb" format="hsb" class="mb-4" />
|
||||||
<span>{{ JSON.stringify(colorHSB) }}</span>
|
<span>{{ JSON.stringify(colorHSB) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>ColorPicker is displayed as a popup by default, add <i>inline</i> property to customize this behavior.</p>
|
<p>ColorPicker is displayed as a popup by default, add <i>inline</i> property to customize this behavior.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" inline />
|
<ColorPicker v-model="color" inline />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,7 +19,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" inline />
|
<ColorPicker v-model="color" inline />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<ColorPicker v-model="color" inline />
|
<ColorPicker v-model="color" inline />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -18,7 +18,7 @@ const app = createApp(App);
|
||||||
app.use(PrimeVue, {
|
app.use(PrimeVue, {
|
||||||
pt: {
|
pt: {
|
||||||
slider: {
|
slider: {
|
||||||
handle: { class: 'bg-primary' }
|
handle: { class: 'bg-primary text-primary-contrast' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>ConfirmDialog is displayed by calling the <i>require</i> method of the <i>$confirm</i> instance by passing the options to customize the Dialog. The <i>target</i> attribute is mandatory to align the popup to its referrer.</p>
|
<p>ConfirmDialog is displayed by calling the <i>require</i> method of the <i>$confirm</i> instance by passing the options to customize the Dialog. The <i>target</i> attribute is mandatory to align the popup to its referrer.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmDialog></ConfirmDialog>
|
<ConfirmDialog></ConfirmDialog>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1()" label="Save" outlined></Button>
|
<Button @click="confirm1()" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,7 +24,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmDialog></ConfirmDialog>
|
<ConfirmDialog></ConfirmDialog>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1()" label="Save" outlined></Button>
|
<Button @click="confirm1()" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmDialog></ConfirmDialog>
|
<ConfirmDialog></ConfirmDialog>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1()" label="Save" outlined></Button>
|
<Button @click="confirm1()" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2()" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,20 +4,20 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmDialog group="headless">
|
<ConfirmDialog group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="flex flex-column align-items-center p-5 surface-overlay border-round">
|
<div class="flex flex-col items-center p-8 bg-surface-0 dark:bg-surface-900 rounded">
|
||||||
<div class="border-circle bg-primary inline-flex justify-content-center align-items-center h-6rem w-6rem -mt-8">
|
<div class="rounded-full bg-primary text-primary-contrast inline-flex justify-center items-center h-24 w-24 -mt-20">
|
||||||
<i class="pi pi-question text-5xl"></i>
|
<i class="pi pi-question text-5xl"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-2xl block mb-2 mt-4">{{ message.header }}</span>
|
<span class="font-bold text-2xl block mb-2 mt-6">{{ message.header }}</span>
|
||||||
<p class="mb-0">{{ message.message }}</p>
|
<p class="mb-0">{{ message.message }}</p>
|
||||||
<div class="flex align-items-center gap-2 mt-4">
|
<div class="flex items-center gap-2 mt-6">
|
||||||
<Button label="Save" @click="acceptCallback" class="w-8rem"></Button>
|
<Button label="Save" @click="acceptCallback" class="w-32"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" class="w-8rem"></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" class="w-32"></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation()" label="Save"></Button>
|
<Button @click="requireConfirmation()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -31,15 +31,15 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ConfirmDialog group="headless">
|
<ConfirmDialog group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="flex flex-column align-items-center p-5 surface-overlay border-round">
|
<div class="flex flex-col items-center p-8 bg-surface-0 dark:bg-surface-900 rounded">
|
||||||
<div class="border-circle bg-primary inline-flex justify-content-center align-items-center h-6rem w-6rem -mt-8">
|
<div class="rounded-full bg-primary text-primary-contrast inline-flex justify-center items-center h-24 w-24 -mt-20">
|
||||||
<i class="pi pi-question text-5xl"></i>
|
<i class="pi pi-question text-5xl"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-2xl block mb-2 mt-4">{{ message.header }}</span>
|
<span class="font-bold text-2xl block mb-2 mt-6">{{ message.header }}</span>
|
||||||
<p class="mb-0">{{ message.message }}</p>
|
<p class="mb-0">{{ message.message }}</p>
|
||||||
<div class="flex align-items-center gap-2 mt-4">
|
<div class="flex items-center gap-2 mt-6">
|
||||||
<Button label="Save" @click="acceptCallback" class="w-8rem"></Button>
|
<Button label="Save" @click="acceptCallback" class="w-32"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" class="w-8rem"></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" class="w-32"></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -50,20 +50,20 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<ConfirmDialog group="headless">
|
<ConfirmDialog group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="flex flex-column align-items-center p-5 surface-overlay border-round">
|
<div class="flex flex-col items-center p-8 bg-surface-0 dark:bg-surface-900 rounded">
|
||||||
<div class="border-circle bg-primary inline-flex justify-content-center align-items-center h-6rem w-6rem -mt-8">
|
<div class="rounded-full bg-primary text-primary-contrast inline-flex justify-center items-center h-24 w-24 -mt-20">
|
||||||
<i class="pi pi-question text-5xl"></i>
|
<i class="pi pi-question text-5xl"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-2xl block mb-2 mt-4">{{ message.header }}</span>
|
<span class="font-bold text-2xl block mb-2 mt-6">{{ message.header }}</span>
|
||||||
<p class="mb-0">{{ message.message }}</p>
|
<p class="mb-0">{{ message.message }}</p>
|
||||||
<div class="flex align-items-center gap-2 mt-4">
|
<div class="flex items-center gap-2 mt-6">
|
||||||
<Button label="Save" @click="acceptCallback" class="w-8rem"></Button>
|
<Button label="Save" @click="acceptCallback" class="w-32"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" class="w-8rem"></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" class="w-32"></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation()" label="Save"></Button>
|
<Button @click="requireConfirmation()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
@ -93,20 +93,20 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<ConfirmDialog group="headless">
|
<ConfirmDialog group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="flex flex-column align-items-center p-5 surface-overlay border-round">
|
<div class="flex flex-col items-center p-8 bg-surface-0 dark:bg-surface-900 rounded">
|
||||||
<div class="border-circle bg-primary inline-flex justify-content-center align-items-center h-6rem w-6rem -mt-8">
|
<div class="rounded-full bg-primary text-primary-contrast inline-flex justify-center items-center h-24 w-24 -mt-20">
|
||||||
<i class="pi pi-question text-5xl"></i>
|
<i class="pi pi-question text-5xl"></i>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-2xl block mb-2 mt-4">{{ message.header }}</span>
|
<span class="font-bold text-2xl block mb-2 mt-6">{{ message.header }}</span>
|
||||||
<p class="mb-0">{{ message.message }}</p>
|
<p class="mb-0">{{ message.message }}</p>
|
||||||
<div class="flex align-items-center gap-2 mt-4">
|
<div class="flex items-center gap-2 mt-6">
|
||||||
<Button label="Save" @click="acceptCallback"></Button>
|
<Button label="Save" @click="acceptCallback"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback"></Button>
|
<Button label="Cancel" outlined @click="rejectCallback"></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation()" label="Save"></Button>
|
<Button @click="requireConfirmation()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmDialog group="positioned"></ConfirmDialog>
|
<ConfirmDialog group="positioned"></ConfirmDialog>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2">
|
<div class="flex flex-wrap justify-center gap-2">
|
||||||
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
|
@ -29,16 +29,16 @@ export default {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<ConfirmDialog group="positioned"></ConfirmDialog>
|
<ConfirmDialog group="positioned"></ConfirmDialog>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2">
|
<div class="flex flex-wrap justify-center gap-2">
|
||||||
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
|
@ -49,16 +49,16 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmDialog group="positioned"></ConfirmDialog>
|
<ConfirmDialog group="positioned"></ConfirmDialog>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2">
|
<div class="flex flex-wrap justify-center gap-2">
|
||||||
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
|
@ -103,16 +103,16 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmDialog group="positioned"></ConfirmDialog>
|
<ConfirmDialog group="positioned"></ConfirmDialog>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('left')" icon="pi pi-arrow-right" label="Left" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('right')" icon="pi pi-arrow-left" label="Right" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2 mb-3">
|
<div class="flex flex-wrap justify-center gap-2 mb-4">
|
||||||
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topleft')" icon="pi pi-arrow-down-right" label="TopLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('top')" icon="pi pi-arrow-down" label="Top" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('topright')" icon="pi pi-arrow-down-left" label="TopRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap justify-content-center gap-2">
|
<div class="flex flex-wrap justify-center gap-2">
|
||||||
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomleft')" icon="pi pi-arrow-up-right" label="BottomLeft" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottom')" icon="pi pi-arrow-up" label="Bottom" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
<Button @click="confirmPosition('bottomright')" icon="pi pi-arrow-up-left" label="BottomRight" severity="secondary" style="min-width: 10rem"></Button>
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmDialog group="templating">
|
<ConfirmDialog group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate()" label="Save"></Button>
|
<Button @click="showTemplate()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -24,7 +24,7 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ConfirmDialog group="templating">
|
<ConfirmDialog group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,13 +36,13 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<ConfirmDialog group="templating">
|
<ConfirmDialog group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700">
|
||||||
<i :class="slotProps.message.icon" class="text-5xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-5xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate()" label="Save"></Button>
|
<Button @click="showTemplate()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
@ -84,13 +84,13 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<ConfirmDialog group="templating">
|
<ConfirmDialog group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate()" label="Save"></Button>
|
<Button @click="showTemplate()" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<Toast />
|
<Toast />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>ConfirmPopup is displayed by calling the <i>require</i> method of the <i>$confirm</i> instance by passing the options to customize the Popup. The <i>target</i> attribute is mandatory to align the popup to its referrer.</p>
|
<p>ConfirmPopup is displayed by calling the <i>require</i> method of the <i>$confirm</i> instance by passing the options to customize the Popup. The <i>target</i> attribute is mandatory to align the popup to its referrer.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmPopup></ConfirmPopup>
|
<ConfirmPopup></ConfirmPopup>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,7 +24,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup></ConfirmPopup>
|
<ConfirmPopup></ConfirmPopup>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup></ConfirmPopup>
|
<ConfirmPopup></ConfirmPopup>
|
||||||
<div class="card flex flex-wrap gap-2 justify-content-center">
|
<div class="card flex flex-wrap gap-2 justify-center">
|
||||||
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
<Button @click="confirm1($event)" label="Save" outlined></Button>
|
||||||
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
<Button @click="confirm2($event)" label="Delete" severity="danger" outlined></Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmPopup group="headless">
|
<ConfirmPopup group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="border-round p-3">
|
<div class="rounded p-4">
|
||||||
<span>{{ message.message }}</span>
|
<span>{{ message.message }}</span>
|
||||||
<div class="flex align-items-center gap-2 mt-3">
|
<div class="flex items-center gap-2 mt-4">
|
||||||
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -27,9 +27,9 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ConfirmPopup group="headless">
|
<ConfirmPopup group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="border-round p-3">
|
<div class="rounded p-4">
|
||||||
<span>{{ message.message }}</span>
|
<span>{{ message.message }}</span>
|
||||||
<div class="flex align-items-center gap-2 mt-3">
|
<div class="flex items-center gap-2 mt-4">
|
||||||
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,16 +43,16 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup group="headless">
|
<ConfirmPopup group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="border-round p-3">
|
<div class="rounded p-4">
|
||||||
<span>{{ message.message }}</span>
|
<span>{{ message.message }}</span>
|
||||||
<div class="flex align-items-center gap-2 mt-3">
|
<div class="flex items-center gap-2 mt-4">
|
||||||
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -82,16 +82,16 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup group="headless">
|
<ConfirmPopup group="headless">
|
||||||
<template #container="{ message, acceptCallback, rejectCallback }">
|
<template #container="{ message, acceptCallback, rejectCallback }">
|
||||||
<div class="border-round p-3">
|
<div class="rounded p-4">
|
||||||
<span>{{ message.message }}</span>
|
<span>{{ message.message }}</span>
|
||||||
<div class="flex align-items-center gap-2 mt-3">
|
<div class="flex items-center gap-2 mt-4">
|
||||||
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
<Button label="Save" @click="acceptCallback" size="small"></Button>
|
||||||
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
<Button label="Cancel" outlined @click="rejectCallback" severity="secondary" size="small" text></Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
<Button @click="requireConfirmation($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<ConfirmPopup group="templating">
|
<ConfirmPopup group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border p-3 mb-3 pb-0">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700 p-4 mb-4 pb-0">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate($event)" label="Save"></Button>
|
<Button @click="showTemplate($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -24,7 +24,7 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ConfirmPopup group="templating">
|
<ConfirmPopup group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border p-3 mb-3 pb-0">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700 p-4 mb-4 pb-0">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,13 +37,13 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup group="templating">
|
<ConfirmPopup group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border p-3 mb-3 pb-0">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700 p-4 mb-4 pb-0">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate($event)" label="Save"></Button>
|
<Button @click="showTemplate($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -83,13 +83,13 @@ export default {
|
||||||
<Toast />
|
<Toast />
|
||||||
<ConfirmPopup group="templating">
|
<ConfirmPopup group="templating">
|
||||||
<template #message="slotProps">
|
<template #message="slotProps">
|
||||||
<div class="flex flex-column align-items-center w-full gap-3 border-bottom-1 surface-border p-3 mb-3 pb-0">
|
<div class="flex flex-col items-center w-full gap-4 border-b border-surface-200 dark:border-surface-700 p-4 mb-4 pb-0">
|
||||||
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
<i :class="slotProps.message.icon" class="text-6xl text-primary-500"></i>
|
||||||
<p>{{ slotProps.message.message }}</p>
|
<p>{{ slotProps.message.message }}</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ConfirmPopup>
|
</ConfirmPopup>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<Button @click="showTemplate($event)" label="Save"></Button>
|
<Button @click="showTemplate($event)" label="Save"></Button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>ContextMenu requires a collection of menuitems as its <i>model</i> and the <i>show</i> method needs to be called explicity using an event of the target like <i>contextmenu</i> to display the menu.</p>
|
<p>ContextMenu requires a collection of menuitems as its <i>model</i> and the <i>show</i> method needs to be called explicity using an event of the target like <i>contextmenu</i> to display the menu.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" class="w-full md:w-30rem border-round shadow-4" @contextmenu="onImageRightClick" aria-haspopup="true" />
|
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" class="w-full md:w-[30rem] rounded shadow-lg" @contextmenu="onImageRightClick" aria-haspopup="true" />
|
||||||
<ContextMenu ref="menu" :model="items" />
|
<ContextMenu ref="menu" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
|
@ -19,13 +19,13 @@ export default {
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<img alt="Logo" src="/images/nature/nature2.jpg" class="w-full md:w-30rem border-round shadow-4" @contextmenu="onImageRightClick" aria-haspopup="true" />
|
<img alt="Logo" src="/images/nature/nature2.jpg" class="w-full md:w-[30rem] rounded shadow-lg" @contextmenu="onImageRightClick" aria-haspopup="true" />
|
||||||
<ContextMenu ref="menu" :model="items" />
|
<ContextMenu ref="menu" :model="items" />
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" @contextmenu="onImageRightClick" class="w-full md:w-30rem border-round shadow-4" aria-haspopup="true" />
|
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" @contextmenu="onImageRightClick" class="w-full md:w-[30rem] rounded shadow-lg" aria-haspopup="true" />
|
||||||
<ContextMenu ref="menu" :model="items" />
|
<ContextMenu ref="menu" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -51,7 +51,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" @contextmenu="onImageRightClick" class="w-full md:w-30rem border-round shadow-4" aria-haspopup="true" />
|
<img alt="Logo" src="https://primefaces.org/cdn/primevue/images/nature/nature2.jpg" @contextmenu="onImageRightClick" class="w-full md:w-[30rem] rounded shadow-lg" aria-haspopup="true" />
|
||||||
<ContextMenu ref="menu" :model="items" />
|
<ContextMenu ref="menu" :model="items" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>The <i>command</i> property defines the callback to run when an item is activated by click or a key event.</p>
|
<p>The <i>command</i> property defines the callback to run when an item is activated by click or a key event.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="user in users"
|
v-for="user in users"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200 flex align-items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all duration-200 flex items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
||||||
@contextmenu="onRightClick($event, user)"
|
@contextmenu="onRightClick($event, user)"
|
||||||
>
|
>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="user.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${user.image}`" style="width: 32px" />
|
<img :alt="user.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${user.image}`" style="width: 32px" />
|
||||||
<span class="font-bold">{{ user.name }}</span>
|
<span class="font-bold">{{ user.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,14 +69,14 @@ export default {
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="user in users"
|
v-for="user in users"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200 flex align-items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all duration-200 flex items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
||||||
@contextmenu="onRightClick($event, user)"
|
@contextmenu="onRightClick($event, user)"
|
||||||
>
|
>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="user.name" :src="\`/images/avatar/\${user.image}\`" style="width: 32px" />
|
<img :alt="user.name" :src="\`/images/avatar/\${user.image}\`" style="width: 32px" />
|
||||||
<span class="font-bold">{{ user.name }}</span>
|
<span class="font-bold">{{ user.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -88,15 +88,15 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="user in users"
|
v-for="user in users"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200 flex align-items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all duration-200 flex items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
||||||
@contextmenu="onRightClick($event, user)"
|
@contextmenu="onRightClick($event, user)"
|
||||||
>
|
>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="user.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${user.image}\`" style="width: 32px" />
|
<img :alt="user.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${user.image}\`" style="width: 32px" />
|
||||||
<span class="font-bold">{{ user.name }}</span>
|
<span class="font-bold">{{ user.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -171,15 +171,15 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="user in users"
|
v-for="user in users"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200 flex align-items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all duration-200 flex items-center justify-content-between', { 'border-primary': selectedUser?.id === user.id }]"
|
||||||
@contextmenu="onRightClick($event, user)"
|
@contextmenu="onRightClick($event, user)"
|
||||||
>
|
>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="user.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${user.image}\`" style="width: 32px" />
|
<img :alt="user.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${user.image}\`" style="width: 32px" />
|
||||||
<span class="font-bold">{{ user.name }}</span>
|
<span class="font-bold">{{ user.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Items with navigation are defined with templating to be able to use a router link component, an external link or programmatic navigation.</p>
|
<p>Items with navigation are defined with templating to be able to use a router link component, an external link or programmatic navigation.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<span class="inline-flex align-items-center justify-content-center border-2 border-primary border-round w-4rem h-4rem" @contextmenu="onRightClick" aria-haspopup="true">
|
<span class="inline-flex items-center justify-center border-2 border-primary rounded w-16 h-16" @contextmenu="onRightClick" aria-haspopup="true">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
||||||
|
@ -58,7 +58,7 @@ export default {
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<span class="inline-flex align-items-center justify-content-center border-2 border-primary border-round w-4rem h-4rem" @contextmenu="onRightClick" aria-haspopup="true">
|
<span class="inline-flex items-center justify-center border-2 border-primary rounded w-16 h-16" @contextmenu="onRightClick" aria-haspopup="true">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="..." fill="var(--p-primary-color)" />
|
<path d="..." fill="var(--p-primary-color)" />
|
||||||
<path d="..." fill="var(--text-color)" />
|
<path d="..." fill="var(--text-color)" />
|
||||||
|
@ -81,8 +81,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<span class="inline-flex align-items-center justify-content-center border-2 border-primary border-round w-4rem h-4rem" @contextmenu="onRightClick" aria-haspopup="true">
|
<span class="inline-flex items-center justify-center border-2 border-primary rounded w-16 h-16" @contextmenu="onRightClick" aria-haspopup="true">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
||||||
|
@ -146,8 +146,8 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-center">
|
||||||
<span class="inline-flex align-items-center justify-content-center border-2 border-primary border-round w-4rem h-4rem" @contextmenu="onRightClick" aria-haspopup="true">
|
<span class="inline-flex items-center justify-center border-2 border-primary rounded w-16 h-16" @contextmenu="onRightClick" aria-haspopup="true">
|
||||||
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path
|
<path
|
||||||
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
|
||||||
|
|
|
@ -2,34 +2,34 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>ContextMenu offers item customization with the <i>item</i> template that receives the menuitem instance from the model as a parameter.</p>
|
<p>ContextMenu offers item customization with the <i>item</i> template that receives the menuitem instance from the model as a parameter.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="product in products"
|
v-for="product in products"
|
||||||
:key="product.id"
|
:key="product.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
||||||
@contextmenu="onRightClick($event, product.id)"
|
@contextmenu="onRightClick($event, product.id)"
|
||||||
>
|
>
|
||||||
<div class="flex flex-wrap p-2 align-items-center gap-3">
|
<div class="flex flex-wrap p-2 items-center gap-4">
|
||||||
<img class="w-4rem flex-shrink-0 border-round" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
<img class="w-16 flex-shrink-0 rounded" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
||||||
<div class="flex-1 flex flex-column gap-1">
|
<div class="flex-1 flex flex-col gap-1">
|
||||||
<span class="font-bold">{{ product.name }}</span>
|
<span class="font-bold">{{ product.name }}</span>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<i class="pi pi-tag text-sm"></i>
|
<i class="pi pi-tag text-sm"></i>
|
||||||
<span>{{ product.category }}</span>
|
<span>{{ product.category }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-900 ml-5">${{ product.price }}</span>
|
<span class="font-bold text-surface-900 ml-8">${{ product.price }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<a v-ripple class="flex align-items-center" v-bind="props.action">
|
<a v-ripple class="flex items-center" v-bind="props.action">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
||||||
<span v-if="item.shortcut" class="ml-auto border-1 surface-border border-round surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
<span v-if="item.shortcut" class="ml-auto border border-surface-200 dark:border-surface-700 rounded bg-surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
||||||
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -79,33 +79,33 @@ export default {
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="product in products"
|
v-for="product in products"
|
||||||
:key="product.id"
|
:key="product.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
||||||
@contextmenu="onRightClick($event, product.id)"
|
@contextmenu="onRightClick($event, product.id)"
|
||||||
>
|
>
|
||||||
<div class="flex flex-wrap p-2 align-items-center gap-3">
|
<div class="flex flex-wrap p-2 items-center gap-4">
|
||||||
<img class="w-4rem flex-shrink-0 border-round" :src="'/images/product/' + product.image" :alt="product.name" />
|
<img class="w-16 flex-shrink-0 rounded" :src="'/images/product/' + product.image" :alt="product.name" />
|
||||||
<div class="flex-1 flex flex-column gap-1">
|
<div class="flex-1 flex flex-col gap-1">
|
||||||
<span class="font-bold">{{ product.name }}</span>
|
<span class="font-bold">{{ product.name }}</span>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<i class="pi pi-tag text-sm"></i>
|
<i class="pi pi-tag text-sm"></i>
|
||||||
<span>{{ product.category }}</span>
|
<span>{{ product.category }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-900 ml-5">\${{ product.price }}</span>
|
<span class="font-bold text-surface-900 ml-8">\${{ product.price }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<a v-ripple class="flex align-items-center" v-bind="props.action">
|
<a v-ripple class="flex items-center" v-bind="props.action">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
||||||
<span v-if="item.shortcut" class="ml-auto border-1 surface-border border-round surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
<span v-if="item.shortcut" class="ml-auto border border-surface-200 dark:border-surface-700 rounded bg-surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
||||||
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -113,34 +113,34 @@ export default {
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]">
|
||||||
<li
|
<li
|
||||||
v-for="product in products"
|
v-for="product in products"
|
||||||
:key="product.id"
|
:key="product.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
||||||
@contextmenu="onRightClick($event, product.id)"
|
@contextmenu="onRightClick($event, product.id)"
|
||||||
>
|
>
|
||||||
<div class="flex flex-wrap p-2 align-items-center gap-3">
|
<div class="flex flex-wrap p-2 items-center gap-4">
|
||||||
<img class="w-4rem flex-shrink-0 border-round" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
<img class="w-16 flex-shrink-0 rounded" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
||||||
<div class="flex-1 flex flex-column gap-1">
|
<div class="flex-1 flex flex-col gap-1">
|
||||||
<span class="font-bold">{{ product.name }}</span>
|
<span class="font-bold">{{ product.name }}</span>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<i class="pi pi-tag text-sm"></i>
|
<i class="pi pi-tag text-sm"></i>
|
||||||
<span>{{ product.category }}</span>
|
<span>{{ product.category }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-900 ml-5">\${{ product.price }}</span>
|
<span class="font-bold text-surface-900 ml-8">\${{ product.price }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
<ContextMenu ref="menu" :model="items" @hide="selectedId = null">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<a v-ripple class="flex align-items-center" v-bind="props.action">
|
<a v-ripple class="flex items-center" v-bind="props.action">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
||||||
<span v-if="item.shortcut" class="ml-auto border-1 surface-border border-round surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
<span v-if="item.shortcut" class="ml-auto border border-surface-200 dark:border-surface-700 rounded bg-surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
||||||
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -203,34 +203,34 @@ export default {
|
||||||
`,
|
`,
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex md:justify-content-center">
|
<div class="card flex md:justify-center">
|
||||||
<ul class="m-0 p-0 list-none border-1 surface-border border-round p-3 flex flex-column gap-2 w-full md:w-30rem" @hide="selectedId = null">
|
<ul class="m-0 p-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]" @hide="selectedId = null">
|
||||||
<li
|
<li
|
||||||
v-for="product in products"
|
v-for="product in products"
|
||||||
:key="product.id"
|
:key="product.id"
|
||||||
:class="['p-2 hover:surface-hover border-round border-1 border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
:class="['p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200', { 'border-primary': selectedId === product.id }]"
|
||||||
@contextmenu="onRightClick($event, product.id)"
|
@contextmenu="onRightClick($event, product.id)"
|
||||||
>
|
>
|
||||||
<div class="flex flex-wrap p-2 align-items-center gap-3">
|
<div class="flex flex-wrap p-2 items-center gap-4">
|
||||||
<img class="w-4rem flex-shrink-0 border-round" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
<img class="w-16 flex-shrink-0 rounded" :src="'https://primefaces.org/cdn/primevue/images/product/' + product.image" :alt="product.name" />
|
||||||
<div class="flex-1 flex flex-column gap-1">
|
<div class="flex-1 flex flex-col gap-1">
|
||||||
<span class="font-bold">{{ product.name }}</span>
|
<span class="font-bold">{{ product.name }}</span>
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<i class="pi pi-tag text-sm"></i>
|
<i class="pi pi-tag text-sm"></i>
|
||||||
<span>{{ product.category }}</span>
|
<span>{{ product.category }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="font-bold text-900 ml-5">\${{ product.price }}</span>
|
<span class="font-bold text-surface-900 ml-8">\${{ product.price }}</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ContextMenu ref="menu" :model="items">
|
<ContextMenu ref="menu" :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<a v-ripple class="flex align-items-center" v-bind="props.action">
|
<a v-ripple class="flex items-center" v-bind="props.action">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
<Badge v-if="item.badge" class="ml-auto" :value="item.badge" />
|
||||||
<span v-if="item.shortcut" class="ml-auto border-1 surface-border border-round surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
<span v-if="item.shortcut" class="ml-auto border border-surface-200 dark:border-surface-700 rounded bg-surface-100 text-xs p-1">{{ item.shortcut }}</span>
|
||||||
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
<i v-if="item.items" class="pi pi-angle-right ml-auto"></i>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -75,7 +75,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
rowClass(data) {
|
rowClass(data) {
|
||||||
return [{ 'bg-primary': data.category === 'Fitness' }];
|
return [{ 'bg-primary text-primary-contrast': data.category === 'Fitness' }];
|
||||||
},
|
},
|
||||||
rowStyle(data) {
|
rowStyle(data) {
|
||||||
if (data.quantity === 0) {
|
if (data.quantity === 0) {
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
||||||
},
|
},
|
||||||
stockClass(data) {
|
stockClass(data) {
|
||||||
return [
|
return [
|
||||||
'border-circle w-2rem h-2rem inline-flex font-bold justify-content-center align-items-center text-sm',
|
'rounded-full w-8 h-8 inline-flex font-bold justify-center items-center text-sm',
|
||||||
{
|
{
|
||||||
'bg-red-100 text-red-900': data.quantity === 0,
|
'bg-red-100 text-red-900': data.quantity === 0,
|
||||||
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
||||||
|
@ -125,7 +125,7 @@ onMounted(() => {
|
||||||
const products = ref();
|
const products = ref();
|
||||||
|
|
||||||
const rowClass = (data) => {
|
const rowClass = (data) => {
|
||||||
return [{ 'bg-primary': data.category === 'Fitness' }];
|
return [{ 'bg-primary text-primary-contrast': data.category === 'Fitness' }];
|
||||||
};
|
};
|
||||||
const rowStyle = (data) => {
|
const rowStyle = (data) => {
|
||||||
if (data.quantity === 0) {
|
if (data.quantity === 0) {
|
||||||
|
@ -134,7 +134,7 @@ const rowStyle = (data) => {
|
||||||
};
|
};
|
||||||
const stockClass = (data) => {
|
const stockClass = (data) => {
|
||||||
return [
|
return [
|
||||||
'border-circle w-2rem h-2rem inline-flex font-bold justify-content-center align-items-center text-sm',
|
'rounded-full w-8 h-8 inline-flex font-bold justify-center items-center text-sm',
|
||||||
{
|
{
|
||||||
'bg-red-100 text-red-900': data.quantity === 0,
|
'bg-red-100 text-red-900': data.quantity === 0,
|
||||||
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
||||||
|
@ -167,7 +167,7 @@ const stockClass = (data) => {
|
||||||
ProductService.getProductsSmall().then((data) => (this.products = data));
|
ProductService.getProductsSmall().then((data) => (this.products = data));
|
||||||
},
|
},
|
||||||
rowClass(data) {
|
rowClass(data) {
|
||||||
return [{ 'bg-primary': data.category === 'Fitness' }];
|
return [{ 'bg-primary text-primary-contrast': data.category === 'Fitness' }];
|
||||||
},
|
},
|
||||||
rowStyle(data) {
|
rowStyle(data) {
|
||||||
if (data.quantity === 0) {
|
if (data.quantity === 0) {
|
||||||
|
@ -176,7 +176,7 @@ const stockClass = (data) => {
|
||||||
},
|
},
|
||||||
stockClass(data) {
|
stockClass(data) {
|
||||||
return [
|
return [
|
||||||
'border-circle w-2rem h-2rem inline-flex font-bold justify-content-center align-items-center text-sm',
|
'rounded-full w-8 h-8 inline-flex font-bold justify-center items-center text-sm',
|
||||||
{
|
{
|
||||||
'bg-red-100 text-red-900': data.quantity === 0,
|
'bg-red-100 text-red-900': data.quantity === 0,
|
||||||
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
'bg-blue-100 text-blue-900': data.quantity > 0 && data.quantity < 10,
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -113,7 +113,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -171,7 +171,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -289,7 +289,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
<Column field="country.name" header="Country" filterField="country.name" filterMatchMode="contains" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -305,7 +305,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
<Column field="representative.name" header="Representative" filterField="representative.name" sortable>
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id" @rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id" @rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap justify-content-end gap-2">
|
<div class="flex flex-wrap justify-end gap-2">
|
||||||
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
||||||
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.image" class="shadow-4" width="64" />
|
<img :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.image" class="shadow-lg" width="64" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<template #expansion="slotProps">
|
<template #expansion="slotProps">
|
||||||
<div class="p-3">
|
<div class="p-4">
|
||||||
<h5>Orders for {{ slotProps.data.name }}</h5>
|
<h5>Orders for {{ slotProps.data.name }}</h5>
|
||||||
<DataTable :value="slotProps.data.orders">
|
<DataTable :value="slotProps.data.orders">
|
||||||
<Column field="id" header="Id" sortable></Column>
|
<Column field="id" header="Id" sortable></Column>
|
||||||
|
@ -85,7 +85,7 @@ export default {
|
||||||
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
||||||
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap justify-content-end gap-2">
|
<div class="flex flex-wrap justify-end gap-2">
|
||||||
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
||||||
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,7 +94,7 @@ export default {
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-4" width="64" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-lg" width="64" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -114,7 +114,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<template #expansion="slotProps">
|
<template #expansion="slotProps">
|
||||||
<div class="p-3">
|
<div class="p-4">
|
||||||
<h5>Orders for {{ slotProps.data.name }}</h5>
|
<h5>Orders for {{ slotProps.data.name }}</h5>
|
||||||
<DataTable :value="slotProps.data.orders">
|
<DataTable :value="slotProps.data.orders">
|
||||||
<Column field="id" header="Id" sortable></Column>
|
<Column field="id" header="Id" sortable></Column>
|
||||||
|
@ -146,7 +146,7 @@ export default {
|
||||||
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
||||||
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap justify-content-end gap-2">
|
<div class="flex flex-wrap justify-end gap-2">
|
||||||
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
||||||
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -155,7 +155,7 @@ export default {
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-4" width="64" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-lg" width="64" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -175,7 +175,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<template #expansion="slotProps">
|
<template #expansion="slotProps">
|
||||||
<div class="p-3">
|
<div class="p-4">
|
||||||
<h5>Orders for {{ slotProps.data.name }}</h5>
|
<h5>Orders for {{ slotProps.data.name }}</h5>
|
||||||
<DataTable :value="slotProps.data.orders" >
|
<DataTable :value="slotProps.data.orders" >
|
||||||
<Column field="id" header="Id" sortable></Column>
|
<Column field="id" header="Id" sortable></Column>
|
||||||
|
@ -276,7 +276,7 @@ export default {
|
||||||
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
<DataTable v-model:expandedRows="expandedRows" :value="products" dataKey="id"
|
||||||
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
@rowExpand="onRowExpand" @rowCollapse="onRowCollapse" tableStyle="min-width: 60rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap justify-content-end gap-2">
|
<div class="flex flex-wrap justify-end gap-2">
|
||||||
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
<Button text icon="pi pi-plus" label="Expand All" @click="expandAll" />
|
||||||
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
<Button text icon="pi pi-minus" label="Collapse All" @click="collapseAll" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -285,7 +285,7 @@ export default {
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-4" width="64" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="shadow-lg" width="64" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -305,7 +305,7 @@ export default {
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<template #expansion="slotProps">
|
<template #expansion="slotProps">
|
||||||
<div class="p-3">
|
<div class="p-4">
|
||||||
<h5>Orders for {{ slotProps.data.name }}</h5>
|
<h5>Orders for {{ slotProps.data.name }}</h5>
|
||||||
<DataTable :value="slotProps.data.orders">
|
<DataTable :value="slotProps.data.orders">
|
||||||
<Column field="id" header="Id" sortable></Column>
|
<Column field="id" header="Id" sortable></Column>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex justify-content-center mb-4">
|
<div class="flex justify-center mb-6">
|
||||||
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
||||||
</div>
|
</div>
|
||||||
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
|
@ -44,7 +44,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex justify-content-center mb-4">
|
<div class="flex justify-center mb-6">
|
||||||
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
||||||
</div>
|
</div>
|
||||||
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
|
@ -80,7 +80,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="flex justify-content-center mb-4">
|
<div class="flex justify-center mb-6">
|
||||||
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
||||||
</div>
|
</div>
|
||||||
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
<DataTable :value="products" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.option.image}`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.option.image}`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -126,7 +126,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -137,7 +137,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -145,7 +145,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -189,7 +189,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -200,7 +200,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -208,7 +208,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -317,7 +317,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
<Column header="Country" sortable sortField="country.name" filterField="country.name" filterMatchMode="contains" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -328,7 +328,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
<Column header="Representative" sortable sortField="representative.name" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="width: 25%">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -336,7 +336,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<DataTable :value="products" tableStyle="min-width: 50rem">
|
<DataTable :value="products" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="flex flex-wrap items-center justify-between gap-2">
|
||||||
<span class="text-xl text-900 font-bold">Products</span>
|
<span class="text-xl text-surface-900 font-bold">Products</span>
|
||||||
<Button icon="pi pi-refresh" rounded raised />
|
<Button icon="pi pi-refresh" rounded raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.image" class="w-6rem border-round" />
|
<img :src="`https://primefaces.org/cdn/primevue/images/product/${slotProps.data.image}`" :alt="slotProps.data.image" class="w-24 rounded" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -51,15 +51,15 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<DataTable :value="products" tableStyle="min-width: 50rem">
|
<DataTable :value="products" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="flex flex-wrap items-center justify-between gap-2">
|
||||||
<span class="text-xl text-900 font-bold">Products</span>
|
<span class="text-xl text-surface-900 font-bold">Products</span>
|
||||||
<Button icon="pi pi-refresh" rounded raised />
|
<Button icon="pi pi-refresh" rounded raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-6rem border-round" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-24 rounded" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -86,15 +86,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<DataTable :value="products" tableStyle="min-width: 50rem">
|
<DataTable :value="products" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="flex flex-wrap items-center justify-between gap-2">
|
||||||
<span class="text-xl text-900 font-bold">Products</span>
|
<span class="text-xl text-surface-900 font-bold">Products</span>
|
||||||
<Button icon="pi pi-refresh" rounded raised />
|
<Button icon="pi pi-refresh" rounded raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-6rem border-round" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-24 rounded" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
@ -158,15 +158,15 @@ export default {
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<DataTable :value="products" tableStyle="min-width: 50rem">
|
<DataTable :value="products" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex flex-wrap align-items-center justify-content-between gap-2">
|
<div class="flex flex-wrap items-center justify-between gap-2">
|
||||||
<span class="text-xl text-900 font-bold">Products</span>
|
<span class="text-xl text-surface-900 font-bold">Products</span>
|
||||||
<Button icon="pi pi-refresh" rounded raised />
|
<Button icon="pi pi-refresh" rounded raised />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name"></Column>
|
<Column field="name" header="Name"></Column>
|
||||||
<Column header="Image">
|
<Column header="Image">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-6rem border-round" />
|
<img :src="\`https://primefaces.org/cdn/primevue/images/product/\${slotProps.data.image}\`" :alt="slotProps.data.image" class="w-24 rounded" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="price" header="Price">
|
<Column field="price" header="Price">
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id" filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id" filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-between">
|
<div class="flex justify-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="`flag flag-${data.country.code}`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,12 +43,12 @@
|
||||||
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
||||||
</template>
|
</template>
|
||||||
<template #filterfooter>
|
<template #filterfooter>
|
||||||
<div class="px-3 pt-0 pb-3 text-center">Customized Buttons</div>
|
<div class="px-4 pt-0 pb-4 text-center">Customized Buttons</div>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${data.representative.image}`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.option.image}`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="`https://primefaces.org/cdn/primevue/images/avatar/${slotProps.option.image}`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -97,8 +97,8 @@
|
||||||
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
||||||
</template>
|
</template>
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<Slider v-model="filterModel.value" range class="m-3"></Slider>
|
<Slider v-model="filterModel.value" range class="m-4"></Slider>
|
||||||
<div class="flex align-items-center justify-content-between px-2">
|
<div class="flex items-center justify-between px-2">
|
||||||
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
||||||
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
||||||
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
||||||
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-between">
|
<div class="flex justify-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon>
|
||||||
|
@ -169,7 +169,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -184,12 +184,12 @@ export default {
|
||||||
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
||||||
</template>
|
</template>
|
||||||
<template #filterfooter>
|
<template #filterfooter>
|
||||||
<div class="px-3 pt-0 pb-3 text-center">Customized Buttons</div>
|
<div class="px-4 pt-0 pb-4 text-center">Customized Buttons</div>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -197,7 +197,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -238,8 +238,8 @@ export default {
|
||||||
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
||||||
</template>
|
</template>
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<Slider v-model="filterModel.value" range class="m-3"></Slider>
|
<Slider v-model="filterModel.value" range class="m-4"></Slider>
|
||||||
<div class="flex align-items-center justify-content-between px-2">
|
<div class="flex items-center justify-between px-2">
|
||||||
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
||||||
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -262,7 +262,7 @@ export default {
|
||||||
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
||||||
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-between">
|
<div class="flex justify-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon>
|
||||||
|
@ -284,7 +284,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -299,12 +299,12 @@ export default {
|
||||||
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
||||||
</template>
|
</template>
|
||||||
<template #filterfooter>
|
<template #filterfooter>
|
||||||
<div class="px-3 pt-0 pb-3 text-center">Customized Buttons</div>
|
<div class="px-4 pt-0 pb-4 text-center">Customized Buttons</div>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -312,7 +312,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -353,8 +353,8 @@ export default {
|
||||||
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
||||||
</template>
|
</template>
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<Slider v-model="filterModel.value" range class="m-3"></Slider>
|
<Slider v-model="filterModel.value" range class="m-4"></Slider>
|
||||||
<div class="flex align-items-center justify-content-between px-2">
|
<div class="flex items-center justify-between px-2">
|
||||||
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
||||||
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -469,7 +469,7 @@ export default {
|
||||||
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
<DataTable v-model:filters="filters" :value="customers" paginator showGridlines :rows="10" dataKey="id"
|
||||||
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
filterDisplay="menu" :loading="loading" :globalFilterFields="['name', 'country.name', 'representative.name', 'balance', 'status']">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="flex justify-content-between">
|
<div class="flex justify-between">
|
||||||
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
<Button type="button" icon="pi pi-filter-slash" label="Clear" outlined @click="clearFilter()" />
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon>
|
||||||
|
@ -491,7 +491,7 @@ export default {
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
<Column header="Country" filterField="country.name" style="min-width: 12rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
<img alt="flag" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${data.country.code}\`" style="width: 24px" />
|
||||||
<span>{{ data.country.name }}</span>
|
<span>{{ data.country.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -506,12 +506,12 @@ export default {
|
||||||
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
<Button type="button" icon="pi pi-check" @click="filterCallback()" severity="success"></Button>
|
||||||
</template>
|
</template>
|
||||||
<template #filterfooter>
|
<template #filterfooter>
|
||||||
<div class="px-3 pt-0 pb-3 text-center">Customized Buttons</div>
|
<div class="px-4 pt-0 pb-4 text-center">Customized Buttons</div>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
<Column header="Agent" filterField="representative" :showFilterMatchModes="false" :filterMenuStyle="{ width: '14rem' }" style="min-width: 14rem">
|
||||||
<template #body="{ data }">
|
<template #body="{ data }">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
<img :alt="data.representative.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${data.representative.image}\`" style="width: 32px" />
|
||||||
<span>{{ data.representative.name }}</span>
|
<span>{{ data.representative.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -519,7 +519,7 @@ export default {
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
<MultiSelect v-model="filterModel.value" :options="representatives" optionLabel="name" placeholder="Any" class="p-column-filter">
|
||||||
<template #option="slotProps">
|
<template #option="slotProps">
|
||||||
<div class="flex align-items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
<img :alt="slotProps.option.name" :src="\`https://primefaces.org/cdn/primevue/images/avatar/\${slotProps.option.image}\`" style="width: 32px" />
|
||||||
<span>{{ slotProps.option.name }}</span>
|
<span>{{ slotProps.option.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -560,8 +560,8 @@ export default {
|
||||||
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
<ProgressBar :value="data.activity" :showValue="false" style="height: 6px"></ProgressBar>
|
||||||
</template>
|
</template>
|
||||||
<template #filter="{ filterModel }">
|
<template #filter="{ filterModel }">
|
||||||
<Slider v-model="filterModel.value" range class="m-3"></Slider>
|
<Slider v-model="filterModel.value" range class="m-4"></Slider>
|
||||||
<div class="flex align-items-center justify-content-between px-2">
|
<div class="flex items-center justify-between px-2">
|
||||||
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[0] : 0 }}</span>
|
||||||
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
<span>{{ filterModel.value ? filterModel.value[1] : 100 }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue