<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Fieldset</h1>
<p>Fieldset is a grouping component with the optional content toggle feature.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Regular</h3>
- <Fieldset legend="Godfather I">
+ <div class="content-section implementation">
+ <h3 class="first">Regular</h3>
+ <Fieldset legend="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
@@ -145,7 +145,7 @@ import Fieldset from 'primevue/fieldset';
</Fieldset>
<h3>Toggleable</h3>
- <Fieldset legend="Godfather I" :toggleable="true">
+ <Fieldset legend="Godfather I" :toggleable="true">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
diff --git a/src/views/fileupload/FileUploadDoc.vue b/src/views/fileupload/FileUploadDoc.vue
index b4e56aca7..99074bb14 100644
--- a/src/views/fileupload/FileUploadDoc.vue
+++ b/src/views/fileupload/FileUploadDoc.vue
@@ -10,19 +10,19 @@ import FileUpload from 'primevue/fileupload';
Getting Started
FileUpload requires a url property as the upload target and a name to identify the files at backend.
-<FileUpload name="demo[]" url="./upload" />
+<FileUpload name="demo[]" url="./upload" />
Multiple Uploads
Only one file can be selected at a time by default, to allow selecting multiple files at once enable multiple option.
-<FileUpload name="demo[]" url="./upload" :multiple="true" />
+<FileUpload name="demo[]" url="./upload" :multiple="true" />
Basic UI
FileUpload basic mode provides a simpler UI as an alternative to advanced mode.
-<FileUpload mode="basic" name="demo[]" url="./upload" />
+<FileUpload mode="basic" name="demo[]" url="./upload" />
DragDrop
@@ -31,19 +31,19 @@ import FileUpload from 'primevue/fileupload';
Auto Uploads
When auto property is enabled, upload begins as soon as file selection is completed or a file is dropped on the drop area.
-<FileUpload mode="basic" name="demo[]" url="./upload" :auto="true" />
+<FileUpload mode="basic" name="demo[]" url="./upload" :auto="true" />
File Types
Selectable file types can be restricted with accept property, example below only allows images to be uploaded. Read more about other possible values here.
-<FileUpload mode="basic" name="demo[]" url="./upload" accept="image/*" />
+<FileUpload mode="basic" name="demo[]" url="./upload" accept="image/*" />
File Size
Maximium file size can be restricted using maxFileSize property defined in bytes.
-<FileUpload name="demo[]" url="./upload" :maxFileSize="1000000" />
+<FileUpload name="demo[]" url="./upload" :maxFileSize="1000000" />
In order to customize the default messages use invalidFileSizeMessage option. In messages, {0} placeholder refers to the filename and in detail message, the file size.
@@ -253,22 +253,22 @@ import FileUpload from 'primevue/fileupload';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>FileUpload</h1>
<p>FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations.</p>
</div>
</div>
- <div class="content-section implementation">
+ <div class="content-section implementation">
<h3>Advanced</h3>
- <FileUpload name="demo[]" url="http://192.168.1.110:4000/upload" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000" />
+ <FileUpload name="demo[]" url="http://192.168.1.110:4000/upload" @upload="onUpload" :multiple="true" accept="image/*" :maxFileSize="1000000" />
<h3>Basic</h3>
- <FileUpload mode="basic" name="demo[]" url="http://192.168.1.110:4000/upload" accept="image/*" :maxFileSize="1000000" @upload="onUpload" />
+ <FileUpload mode="basic" name="demo[]" url="http://192.168.1.110:4000/upload" accept="image/*" :maxFileSize="1000000" @upload="onUpload" />
<h3>Basic with Auto</h3>
- <FileUpload mode="basic" name="demo[]" url="http://192.168.1.110:4000/upload" accept="image/*" :maxFileSize="1000000" @upload="onUpload" :auto="true" chooseLabel="Browse" />
+ <FileUpload mode="basic" name="demo[]" url="http://192.168.1.110:4000/upload" accept="image/*" :maxFileSize="1000000" @upload="onUpload" :auto="true" chooseLabel="Browse" />
</div>
</div>
</template>
diff --git a/src/views/flexgrid/FlexGridDoc.vue b/src/views/flexgrid/FlexGridDoc.vue
index d00f1dfd2..1014d62b5 100644
--- a/src/views/flexgrid/FlexGridDoc.vue
+++ b/src/views/flexgrid/FlexGridDoc.vue
@@ -6,10 +6,10 @@
FlexGrid is a CSS utility based on flexbox. For more information about Flex, visit A Complete Guide to Flexbox. A basic grid is defined by giving
a container p-grid class and children the p-col class. Children of the grid will have the same width and scale according to the width of the parent.
-<div class="p-grid">
- <div class="p-col">1</div>
- <div class="p-col">2</div>
- <div class="p-col">3</div>
+<div class="p-grid">
+ <div class="p-col">1</div>
+ <div class="p-col">2</div>
+ <div class="p-col">3</div>
</div>
@@ -29,24 +29,24 @@
Default direction is row and p-dir-* class at the container defines the other possible directions which can be row reverse, column and column reverse
-<div class="p-grid p-dir-rev">
- <div class="p-col">1</div>
- <div class="p-col">2</div>
- <div class="p-col">3</div>
+<div class="p-grid p-dir-rev">
+ <div class="p-col">1</div>
+ <div class="p-col">2</div>
+ <div class="p-col">3</div>
</div>
-<div class="p-grid p-dir-col">
- <div class="p-col">1</div>
- <div class="p-col">2</div>
- <div class="p-col">3</div>
+<div class="p-grid p-dir-col">
+ <div class="p-col">1</div>
+ <div class="p-col">2</div>
+ <div class="p-col">3</div>
</div>
-<div class="p-grid p-dir-col-rev">
- <div class="p-col">1</div>
- <div class="p-col">2</div>
- <div class="p-col">3</div>
+<div class="p-grid p-dir-col-rev">
+ <div class="p-col">1</div>
+ <div class="p-col">2</div>
+ <div class="p-col">3</div>
</div>
@@ -90,22 +90,22 @@
In the first example below, first column covers the 4 units out of 12 and the rest of the columns share the remaining space whereas in the second example, all three columns have explicit units.
-<div class="p-grid">
- <div class="p-col-4">4</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
- <div class="p-col">1</div>
+<div class="p-grid">
+ <div class="p-col-4">4</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
+ <div class="p-col">1</div>
</div>
-<div class="p-grid">
- <div class="p-col-2">2</div>
- <div class="p-col-6">6</div>
- <div class="p-col-4">4</div>
+<div class="p-grid">
+ <div class="p-col-2">2</div>
+ <div class="p-col-6">6</div>
+ <div class="p-col-4">4</div>
</div>
@@ -154,11 +154,11 @@
MultiLine
When the number of columns exceed 12, columns wrap to a new line.
-<div class="p-grid">
- <div class="p-col-6">6</div>
- <div class="p-col-6">6</div>
- <div class="p-col-6">6</div>
- <div class="p-col-6">6</div>
+<div class="p-grid">
+ <div class="p-col-6">6</div>
+ <div class="p-col-6">6</div>
+ <div class="p-col-6">6</div>
+ <div class="p-col-6">6</div>
</div>
@@ -180,9 +180,9 @@
Fixed Width Column
A column can have a fixed width while siblings having auto width. Apply p-col-fixed class to fix a column width.
-<div class="p-grid">
- <div class="p-col-fixed" style="width:100px">Fixed</div>
- <div class="p-col">Auto</div>
+<div class="p-grid">
+ <div class="p-col-fixed" style="width:100px">Fixed</div>
+ <div class="p-col">Auto</div>
</div>
@@ -237,11 +237,11 @@
In example below, large screens display 4 columns, medium screens display 2 columns in 2 rows and finally on small devices, columns are stacked.
-<div class="p-grid">
- <div class="p-col-12 p-md-6 p-lg-3">A</div>
- <div class="p-col-12 p-md-6 p-lg-3">B</div>
- <div class="p-col-12 p-md-6 p-lg-3">C</div>
- <div class="p-col-12 p-md-6 p-lg-3">D</div>
+<div class="p-grid">
+ <div class="p-col-12 p-md-6 p-lg-3">A</div>
+ <div class="p-col-12 p-md-6 p-lg-3">B</div>
+ <div class="p-col-12 p-md-6 p-lg-3">C</div>
+ <div class="p-col-12 p-md-6 p-lg-3">D</div>
</div>
@@ -299,10 +299,10 @@
-<div class="p-grid p-justify-between">
- <div class="p-col-2">2</div>
- <div class="p-col-1">1</div>
- <div class="p-col-4">4</div>
+<div class="p-grid p-justify-between">
+ <div class="p-col-2">2</div>
+ <div class="p-col-1">1</div>
+ <div class="p-col-4">4</div>
</div>
@@ -353,10 +353,10 @@
-<div class="p-grid p-align-center">
- <div class="p-col">4</div>
- <div class="p-col">4</div>
- <div class="p-col">4</div>
+<div class="p-grid p-align-center">
+ <div class="p-col">4</div>
+ <div class="p-col">4</div>
+ <div class="p-col">4</div>
</div>
@@ -405,10 +405,10 @@
-<div class="p-grid">
- <div class="p-col p-col-align-start">4</div>
- <div class="p-col p-col-align-center">4</div>
- <div class="p-col p-col-align-end">4</div>
+<div class="p-grid">
+ <div class="p-col p-col-align-start">4</div>
+ <div class="p-col p-col-align-center">4</div>
+ <div class="p-col p-col-align-end">4</div>
</div>
@@ -427,13 +427,13 @@
Offset
Offset classes allow defining a left margin on a column to avoid adding empty columns for spacing.
-<div class="p-grid">
- <div class="p-col-6 p-offset-3">6</div>
+<div class="p-grid">
+ <div class="p-col-6 p-offset-3">6</div>
</div>
-<div class="p-grid">
- <div class="p-col-4">4</div>
- <div class="p-col-4 p-offset-4">4</div>
+<div class="p-grid">
+ <div class="p-col-4">4</div>
+ <div class="p-col-4 p-offset-4">4</div>
</div>
@@ -500,21 +500,21 @@
Nested
Columns can be nested to create more complex layouts.
-<div class="p-grid nested-grid">
- <div class="p-col-8">
- <div class="p-grid">
- <div class="p-col-6">
+<div class="p-grid nested-grid">
+ <div class="p-col-8">
+ <div class="p-grid">
+ <div class="p-col-6">
6
</div>
- <div class="p-col-6">
+ <div class="p-col-6">
6
</div>
- <div class="p-col-12">
+ <div class="p-col-12">
12
</div>
</div>
</div>
- <div class="p-col-4">
+ <div class="p-col-4">
4
</div>
</div>
@@ -544,10 +544,10 @@
p-nogutter class to the container. Gutters can also be removed on an ndividual columns with the same class name.
-<div class="p-grid p-nogutter">
- <div class="p-col">1</div>
- <div class="p-col p-nogutter">2</div>
- <div class="p-col">3</div>
+<div class="p-grid p-nogutter">
+ <div class="p-col">1</div>
+ <div class="p-col p-nogutter">2</div>
+ <div class="p-col">3</div>
</div>
@@ -564,375 +564,375 @@
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>FlexGrid</h1>
<p>Flex Grid CSS is a lightweight flex based responsive layout utility optimized for mobile phones, tablets and desktops.
- Flex Grid CSS is not included in PrimeReact as it is provided by <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> , a shared grid library between PrimeFaces, PrimeNG, PrimeReact and PrimeVue projects.</p>
+ Flex Grid CSS is not included in PrimeReact as it is provided by <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> , a shared grid library between PrimeFaces, PrimeNG, PrimeReact and PrimeVue projects.</p>
</div>
</div>
- <div class="content-section implementation flexgrid-demo">
- <h3 class="first">Basic</h3>
- <div class="p-grid">
- <div class="p-col">
- <div class="box">1</div>
+ <div class="content-section implementation flexgrid-demo">
+ <h3 class="first">Basic</h3>
+ <div class="p-grid">
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">2</div>
+ <div class="p-col">
+ <div class="box">2</div>
</div>
- <div class="p-col">
- <div class="box">3</div>
+ <div class="p-col">
+ <div class="box">3</div>
</div>
</div>
<h3>Dynamic</h3>
- <Button type="button" icon="pi pi-plus" title="Add Column" @click="addColumn" :disabled="columns.length === 20" style="margin-right: .5em" />
- <Button type="button" icon="pi pi-minus" title="Remove Column" @click="removeColumn" :disabled="columns.length === 1" />
+ <Button type="button" icon="pi pi-plus" title="Add Column" @click="addColumn" :disabled="columns.length === 20" style="margin-right: .5em" />
+ <Button type="button" icon="pi pi-minus" title="Remove Column" @click="removeColumn" :disabled="columns.length === 1" />
- <div style="margin-top: .5em">
- <transition-group name="dynamic-box" tag="div" class="p-grid">
- <div v-for="col of columns" :key="col" class="p-col">
- <div class="box">{{col}}</div>
+ <div style="margin-top: .5em">
+ <transition-group name="dynamic-box" tag="div" class="p-grid">
+ <div v-for="col of columns" :key="col" class="p-col">
+ <div class="box">{{col}}</div>
</div>
</transition-group>
</div>
<h3>Reverse Direction</h3>
- <div class="p-grid p-dir-rev">
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-grid p-dir-rev">
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">2</div>
+ <div class="p-col">
+ <div class="box">2</div>
</div>
- <div class="p-col">
- <div class="box">3</div>
+ <div class="p-col">
+ <div class="box">3</div>
</div>
</div>
<h3>Column Direction</h3>
- <div class="p-grid p-dir-col">
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-grid p-dir-col">
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">2</div>
+ <div class="p-col">
+ <div class="box">2</div>
</div>
- <div class="p-col">
- <div class="box">3</div>
+ <div class="p-col">
+ <div class="box">3</div>
</div>
</div>
<h3>Reverse Column Direction</h3>
- <div class="p-grid p-dir-col-rev">
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-grid p-dir-col-rev">
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">2</div>
+ <div class="p-col">
+ <div class="box">2</div>
</div>
- <div class="p-col">
- <div class="box">3</div>
+ <div class="p-col">
+ <div class="box">3</div>
</div>
</div>
<h3>12 Column Grid</h3>
- <div class="p-grid">
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-grid">
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
- <div class="p-col">
- <div class="box">1</div>
+ <div class="p-col">
+ <div class="box">1</div>
</div>
</div>
- <div class="p-grid">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
- <div class="p-grid">
- <div class="p-col-8">
- <div class="box">8</div>
+ <div class="p-grid">
+ <div class="p-col-8">
+ <div class="box">8</div>
</div>
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
</div>
<h3>MultiLine</h3>
- <div class="p-grid">
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-grid">
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
</div>
<h3>Fixed Width Column</h3>
- <div class="p-grid">
- <div class="p-col-fixed" style="width:100px">
- <div class="box">100px</div>
+ <div class="p-grid">
+ <div class="p-col-fixed" style="width:100px">
+ <div class="box">100px</div>
</div>
- <div class="p-col">
- <div class="box">auto</div>
+ <div class="p-col">
+ <div class="box">auto</div>
</div>
</div>
<h3>Responsive</h3>
- <div class="p-grid">
- <div class="p-col-12 p-md-6 p-lg-3">
- <div class="box">p-col-12 p-md-6 p-lg-3</div>
+ <div class="p-grid">
+ <div class="p-col-12 p-md-6 p-lg-3">
+ <div class="box">p-col-12 p-md-6 p-lg-3</div>
</div>
- <div class="p-col-12 p-md-6 p-lg-3">
- <div class="box">p-col-12 p-md-6 p-lg-3</div>
+ <div class="p-col-12 p-md-6 p-lg-3">
+ <div class="box">p-col-12 p-md-6 p-lg-3</div>
</div>
- <div class="p-col-12 p-md-6 p-lg-3">
- <div class="box">p-col-12 p-md-6 p-lg-3</div>
+ <div class="p-col-12 p-md-6 p-lg-3">
+ <div class="box">p-col-12 p-md-6 p-lg-3</div>
</div>
- <div class="p-col-12 p-md-6 p-lg-3">
- <div class="box">p-col-12 p-md-6 p-lg-3</div>
+ <div class="p-col-12 p-md-6 p-lg-3">
+ <div class="box">p-col-12 p-md-6 p-lg-3</div>
</div>
</div>
<h3>Horizontal Alignment - Start</h3>
- <div class="p-grid p-justify-start">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-start">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Horizontal Alignment - End</h3>
- <div class="p-grid p-justify-end">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-end">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Horizontal Alignment - Center</h3>
- <div class="p-grid p-justify-center">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-center">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Horizontal Alignment - Between</h3>
- <div class="p-grid p-justify-between">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-between">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Horizontal Alignment - Around</h3>
- <div class="p-grid p-justify-around">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-around">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Horizontal Alignment - Even</h3>
- <div class="p-grid p-justify-even">
- <div class="p-col-2">
- <div class="box">2</div>
+ <div class="p-grid p-justify-even">
+ <div class="p-col-2">
+ <div class="box">2</div>
</div>
- <div class="p-col-1">
- <div class="box">1</div>
+ <div class="p-col-1">
+ <div class="box">1</div>
</div>
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Vertical Alignment - Start</h3>
- <div class="p-grid p-align-start vertical-container">
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-grid p-align-start vertical-container">
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
</div>
<h3>Vertical Alignment - End</h3>
- <div class="p-grid p-align-end vertical-container">
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-grid p-align-end vertical-container">
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
</div>
<h3>Vertical Alignment - Center</h3>
- <div class="p-grid p-align-center vertical-container">
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-grid p-align-center vertical-container">
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
- <div class="p-col">
- <div class="box">4</div>
+ <div class="p-col">
+ <div class="box">4</div>
</div>
</div>
<h3>Vertical Alignment - Stretch</h3>
- <div class="p-grid p-align-stretch vertical-container">
- <div class="p-col">
- <div class="box box-stretched">4</div>
+ <div class="p-grid p-align-stretch vertical-container">
+ <div class="p-col">
+ <div class="box box-stretched">4</div>
</div>
- <div class="p-col">
- <div class="box box-stretched">4</div>
+ <div class="p-col">
+ <div class="box box-stretched">4</div>
</div>
- <div class="p-col">
- <div class="box box-stretched">4</div>
+ <div class="p-col">
+ <div class="box box-stretched">4</div>
</div>
</div>
<h3>Vertical Alignment - Per Column</h3>
- <div class="p-grid vertical-container">
- <div class="p-col p-col-align-start">
- <div class="box">4</div>
+ <div class="p-grid vertical-container">
+ <div class="p-col p-col-align-start">
+ <div class="box">4</div>
</div>
- <div class="p-col p-col-align-center">
- <div class="box">4</div>
+ <div class="p-col p-col-align-center">
+ <div class="box">4</div>
</div>
- <div class="p-col p-col-align-end">
- <div class="box">4</div>
+ <div class="p-col p-col-align-end">
+ <div class="box">4</div>
</div>
</div>
<h3>Offset</h3>
- <div class="p-grid">
- <div class="p-col-6 p-offset-3">
- <div class="box">6</div>
+ <div class="p-grid">
+ <div class="p-col-6 p-offset-3">
+ <div class="box">6</div>
</div>
</div>
- <div class="p-grid">
- <div class="p-col-4">
- <div class="box">4</div>
+ <div class="p-grid">
+ <div class="p-col-4">
+ <div class="box">4</div>
</div>
- <div class="p-col-4 p-offset-4">
- <div class="box">4</div>
+ <div class="p-col-4 p-offset-4">
+ <div class="box">4</div>
</div>
</div>
<h3>Nested</h3>
- <div class="p-grid nested-grid">
- <div class="p-col-8">
- <div class="p-grid">
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-grid nested-grid">
+ <div class="p-col-8">
+ <div class="p-grid">
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-6">
- <div class="box">6</div>
+ <div class="p-col-6">
+ <div class="box">6</div>
</div>
- <div class="p-col-12">
- <div class="box">12</div>
+ <div class="p-col-12">
+ <div class="box">12</div>
</div>
</div>
</div>
- <div class="p-col-4">
- <div class="box box-stretched">4</div>
+ <div class="p-col-4">
+ <div class="box box-stretched">4</div>
</div>
</div>
<h3>Panels</h3>
- <div class="p-grid">
- <div class="p-col">
- <Panel header="Godfather">
+ <div class="p-grid">
+ <div class="p-col">
+ <Panel header="Godfather">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</Panel>
</div>
- <div class="p-col">
- <Panel header="Godfather">
+ <div class="p-col">
+ <Panel header="Godfather">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</Panel>
</div>
- <div class="p-col">
- <Panel header="Godfather">
+ <div class="p-col">
+ <Panel header="Godfather">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
@@ -942,43 +942,43 @@
</div>
<h3>Sample Layout</h3>
- <div class="p-grid sample-layout">
- <div class="p-col-12 p-md-2">
+ <div class="p-grid sample-layout">
+ <div class="p-col-12 p-md-2">
Menu
</div>
- <div class="p-col-12 p-md-10 p-col-nogutter">
- <div class="p-col-12 p-col-nogutter">
+ <div class="p-col-12 p-md-10 p-col-nogutter">
+ <div class="p-col-12 p-col-nogutter">
Top Bar
</div>
- <div class="p-col-12">
- <div class="p-grid">
- <div class="p-col-12 p-md-4">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet, orci nec
+ <div class="p-col-12">
+ <div class="p-grid">
+ <div class="p-col-12 p-md-4">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet, orci nec
dictum convallis, ligula mauris vestibulum turpis, nec varius tortor quam at diam. Nullam a viverra nibh.
In tincidunt tempor lectus quis vulputate. Pellentesque nec dui aliquam, lobortis est in, lobortis ante</div>
- <div class="p-col-12 p-md-4">Maecenas vel nisi aliquet, vulputate tortor id, laoreet massa. Maecenas mattis
+ <div class="p-col-12 p-md-4">Maecenas vel nisi aliquet, vulputate tortor id, laoreet massa. Maecenas mattis
tristique bibendum. Suspendisse vel mi dictum, vestibulum lacus quis, pulvinar quam. Proin vulputate, nibh
at finibus varius, leo eros lacinia elit, nec blandit odio tellus a justo. Donec nec ex auctor, tristique
nulla nec, rutrum sapien.</div>
- <div class="p-col-12 p-md-4">Proin efficitur in leo eget ornare. Nam vestibulum neque sed velit sagittis
+ <div class="p-col-12 p-md-4">Proin efficitur in leo eget ornare. Nam vestibulum neque sed velit sagittis
sodales. Sed scelerisque hendrerit magna a hendrerit. Cras tempor sem at justo pharetra convallis.
Curabitur vel sodales purus. Vestibulum interdum facilisis nulla imperdiet suscipit. Quisque lectus felis,
condimentum eget hendrerit sit amet.</div>
- <div class="p-col-6 p-md-3"><img alt="Galleria 1" src="/demo/images/nature/nature1.jpg" style="width: 100%" /></div>
- <div class="p-col-6 p-md-3"><img alt="Galleria 2" src="/demo/images/nature/nature2.jpg" style="width: 100%" /></div>
- <div class="p-col-6 p-md-3"><img alt="Galleria 3" src="/demo/images/nature/nature3.jpg" style="width: 100%" /></div>
- <div class="p-col-6 p-md-3"><img alt="Galleria 4" src="/demo/images/nature/nature4.jpg" style="width: 100%" /></div>
+ <div class="p-col-6 p-md-3"><img alt="Galleria 1" src="/demo/images/nature/nature1.jpg" style="width: 100%" /></div>
+ <div class="p-col-6 p-md-3"><img alt="Galleria 2" src="/demo/images/nature/nature2.jpg" style="width: 100%" /></div>
+ <div class="p-col-6 p-md-3"><img alt="Galleria 3" src="/demo/images/nature/nature3.jpg" style="width: 100%" /></div>
+ <div class="p-col-6 p-md-3"><img alt="Galleria 4" src="/demo/images/nature/nature4.jpg" style="width: 100%" /></div>
- <div class="p-col-12 p-md-6">Phasellus faucibus purus volutpat mauris lacinia sodales. Ut sit amet sapien
+ <div class="p-col-12 p-md-6">Phasellus faucibus purus volutpat mauris lacinia sodales. Ut sit amet sapien
facilisis, commodo dui non, fringilla tellus. Quisque tempus facilisis nisi sodales finibus. Pellentesque
neque orci, ullamcorper vitae ligula quis, dignissim euismod augue.</div>
- <div class="p-col-12 p-md-6">Fusce ullamcorper congue massa, eget ullamcorper nunc lobortis egestas. Lorem
+ <div class="p-col-12 p-md-6">Fusce ullamcorper congue massa, eget ullamcorper nunc lobortis egestas. Lorem
ipsum dolor sit amet, consectetur adipiscing elit. Quisque ultrices dui eget dolor feugiat dapibus. Aliquam
pretium leo et egestas luctus. Nunc facilisis gravida tellus.</div>
</div>
</div>
</div>
- <div class="p-col-12">
+ <div class="p-col-12">
Footer
</div>
</div>
diff --git a/src/views/fullcalendar/FullCalendarDoc.vue b/src/views/fullcalendar/FullCalendarDoc.vue
index 5bb951333..efa45cfb1 100644
--- a/src/views/fullcalendar/FullCalendarDoc.vue
+++ b/src/views/fullcalendar/FullCalendarDoc.vue
@@ -23,7 +23,7 @@ npm install @fullcalendar/interaction --save
Events should be an array and defined using the events property.
-<FullCalendar :events="events" />
+<FullCalendar :events="events" />
@@ -201,15 +201,15 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>FullCalendar</h1>
- <p>An event calendar based on the <a href="https://fullcalendar.io/">FullCalendar</a> library.</p>
+ <p>An event calendar based on the <a href="https://fullcalendar.io/">FullCalendar</a> library.</p>
</div>
</div>
- <div class="content-section implementation">
- <FullCalendar :events="events" :options="options" />
+ <div class="content-section implementation">
+ <FullCalendar :events="events" :options="options" />
</div>
</div>
</template>
diff --git a/src/views/inputgroup/InputGroupDoc.vue b/src/views/inputgroup/InputGroupDoc.vue
index 3014c9980..0d957aaad 100644
--- a/src/views/inputgroup/InputGroupDoc.vue
+++ b/src/views/inputgroup/InputGroupDoc.vue
@@ -9,111 +9,111 @@
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>InputGroup</h1>
<p>Text, icon, buttons and other content can be grouped next to an input.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Addons</h3>
- <div class="p-grid p-fluid">
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">
- <i class="pi pi-user"></i>
+ <div class="content-section implementation">
+ <h3 class="first">Addons</h3>
+ <div class="p-grid p-fluid">
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">
+ <i class="pi pi-user"></i>
</span>
- <InputText placeholder="Username" />
+ <InputText placeholder="Username" />
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">$</span>
- <InputText placeholder="Price" />
- <span class="p-inputgroup-addon">.00</span>
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">$</span>
+ <InputText placeholder="Price" />
+ <span class="p-inputgroup-addon">.00</span>
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">W</span>
- <InputText placeholder="Website" />
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">W</span>
+ <InputText placeholder="Website" />
</div>
</div>
</div>
<h3>Multiple Addons</h3>
- <div class="p-grid">
- <div class="p-col-12">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">
- <i class="pi pi-clock"></i>
+ <div class="p-grid">
+ <div class="p-col-12">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">
+ <i class="pi pi-clock"></i>
</span>
- <span class="p-inputgroup-addon">
- <i class="pi pi-star"></i>
+ <span class="p-inputgroup-addon">
+ <i class="pi pi-star"></i>
</span>
- <InputText placeholder="Price" />
- <span class="p-inputgroup-addon">$</span>
- <span class="p-inputgroup-addon">.00</span>
+ <InputText placeholder="Price" />
+ <span class="p-inputgroup-addon">$</span>
+ <span class="p-inputgroup-addon">.00</span>
</div>
</div>
</div>
<h3>Button Addons</h3>
- <div class="p-grid p-fluid">
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <Button label="Search"/>
- <InputText placeholder="Keyword"/>
+ <div class="p-grid p-fluid">
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <Button label="Search"/>
+ <InputText placeholder="Keyword"/>
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <InputText placeholder="Keyword"/>
- <Button icon="pi pi-search" class="p-button-warning"/>
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <InputText placeholder="Keyword"/>
+ <Button icon="pi pi-search" class="p-button-warning"/>
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <Button icon="pi pi-check" class="p-button-success"/>
- <InputText placeholder="Vote"/>
- <Button icon="pi pi-times" class="p-button-danger"/>
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <Button icon="pi pi-check" class="p-button-success"/>
+ <InputText placeholder="Vote"/>
+ <Button icon="pi pi-times" class="p-button-danger"/>
</div>
</div>
</div>
<h3>Checkbox and RadioButton</h3>
- <div class="p-grid p-fluid">
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">
- <Checkbox v-model="checked1" />
+ <div class="p-grid p-fluid">
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">
+ <Checkbox v-model="checked1" />
</span>
- <InputText placeholder="Username"/>
+ <InputText placeholder="Username"/>
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <InputText placeholder="Price"/>
- <span class="p-inputgroup-addon">
- <RadioButton name="rb1" value="rb1" v-model="radioValue1" />
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <InputText placeholder="Price"/>
+ <span class="p-inputgroup-addon">
+ <RadioButton name="rb1" value="rb1" v-model="radioValue1" />
</span>
</div>
</div>
- <div class="p-col-12 p-md-4">
- <div class="p-inputgroup">
- <span class="p-inputgroup-addon">
- <Checkbox v-model="checked2" />
+ <div class="p-col-12 p-md-4">
+ <div class="p-inputgroup">
+ <span class="p-inputgroup-addon">
+ <Checkbox v-model="checked2" />
</span>
- <InputText placeholder="Website"/>
- <span class="p-inputgroup-addon">
- <RadioButton name="rb2" value="rb2" v-model="radioValue2" />
+ <InputText placeholder="Website"/>
+ <span class="p-inputgroup-addon">
+ <RadioButton name="rb2" value="rb2" v-model="radioValue2" />
</span>
</div>
</div>
diff --git a/src/views/inputswitch/InputSwitchDoc.vue b/src/views/inputswitch/InputSwitchDoc.vue
index 4235c91c2..6045e3822 100644
--- a/src/views/inputswitch/InputSwitchDoc.vue
+++ b/src/views/inputswitch/InputSwitchDoc.vue
@@ -10,7 +10,7 @@ import InputSwitch from 'primevue/inputswitch';
Getting Started
Two-way binding to a boolean property is defined using the standard v-model directive.
-<InputSwitch v-model="checked" />
+<InputSwitch v-model="checked" />
@@ -155,21 +155,21 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>InputSwitch</h1>
<p>InputSwitch is used to select a boolean value.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <InputSwitch v-model="checked1" />
- <p style="font-weight: bold">{{checked1}}</p>
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <InputSwitch v-model="checked1" />
+ <p style="font-weight: bold">{{checked1}}</p>
<h3>Preselection</h3>
- <InputSwitch v-model="checked2" />
- <p style="font-weight: bold">{{checked2}}</p>
+ <InputSwitch v-model="checked2" />
+ <p style="font-weight: bold">{{checked2}}</p>
</div>
</div>
</template>
diff --git a/src/views/inputtext/InputTextDoc.vue b/src/views/inputtext/InputTextDoc.vue
index 0a546923d..af6ff06bc 100644
--- a/src/views/inputtext/InputTextDoc.vue
+++ b/src/views/inputtext/InputTextDoc.vue
@@ -10,15 +10,15 @@ import InputText from 'primevue/inputtext';
Getting Started
A model can be bound using the standard v-model directive.
-<InputText type="text" v-model="value" />
+<InputText type="text" v-model="value" />
Float Label
A floating label is implemented by wrapping the input and the label inside a container having .p-float-label style class.
-<span class="p-float-label">
- <InputText id="username" type="text" v-model="value" />
- <label for="username">Username</label>
+<span class="p-float-label">
+ <InputText id="username" type="text" v-model="value" />
+ <label for="username">Username</label>
</span>
@@ -56,26 +56,26 @@ import InputText from 'primevue/inputtext';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>InputText</h1>
<p>InputText renders and input field where the user can enter data.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <InputText type="text" v-model="value1" />
- <span :style="{marginLeft: '.5em'}">{{value1}}</span>
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <InputText type="text" v-model="value1" />
+ <span :style="{marginLeft: '.5em'}">{{value1}}</span>
<h3>Floating Label</h3>
- <span class="p-float-label">
- <InputText id="username" type="text" v-model="value2" />
- <label for="username">Username</label>
+ <span class="p-float-label">
+ <InputText id="username" type="text" v-model="value2" />
+ <label for="username">Username</label>
</span>
<h3>Disabled</h3>
- <InputText type="text" v-model="value3" disabled />
+ <InputText type="text" v-model="value3" disabled />
</div>
</div>
</template>
diff --git a/src/views/listbox/ListboxDoc.vue b/src/views/listbox/ListboxDoc.vue
index 084aea214..984cd7fd7 100644
--- a/src/views/listbox/ListboxDoc.vue
+++ b/src/views/listbox/ListboxDoc.vue
@@ -10,7 +10,7 @@ import Listbox from 'primevue/listbox';
Getting Started
Listbox requires a value to bind and a collection of arbitrary objects along with the optionLabel property to specify the label property of the option.
-<Listbox v-model="selectedCity" :options="cities" optionLabel="name" />
+<Listbox v-model="selectedCity" :options="cities" optionLabel="name" />
@@ -33,18 +33,18 @@ data() {
using metaKey or toggled individually depending on the value of metaKeySelection property value which is true by default. On touch enabled
devices metaKeySelection is turned off automatically.
-<Listbox v-model="selectedCity" :options="cities" optionLabel="name" :multiple="true"/>
+<Listbox v-model="selectedCity" :options="cities" optionLabel="name" :multiple="true"/>
Custom Content
Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter.
-<Listbox v-model="selectedCars" :options="cars" :multiple="true" :filter="true" optionLabel="brand" listStyle="max-height:250px" style="width:15em">
- <template #option="slotProps">
- <div class="p-clearfix">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="display:inline-block;margin:5px 0 0 5px;width:48px" />
- <span style="float:right;margin:1.25em .5em 0 0">{{slotProps.option.brand}}</span>
+<Listbox v-model="selectedCars" :options="cars" :multiple="true" :filter="true" optionLabel="brand" listStyle="max-height:250px" style="width:15em">
+ <template #option="slotProps">
+ <div class="p-clearfix">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="display:inline-block;margin:5px 0 0 5px;width:48px" />
+ <span style="float:right;margin:1.25em .5em 0 0">{{slotProps.option.brand}}</span>
</div>
</template>
</Listbox>
@@ -54,7 +54,7 @@ data() {
Filter
Filtering allows searching items in the list using an input field at the header. In order to use filtering, enable filter property.
-<Listbox v-model="selectedCity" :options="cities" optionLabel="name" :filter="true"/>
+<Listbox v-model="selectedCity" :options="cities" optionLabel="name" :filter="true"/>
Properties
@@ -214,23 +214,23 @@ data() {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Listbox</h1>
<p>Listbox is used to select one or more values from a list of items.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Single</h3>
- <Listbox v-model="selectedCity" :options="cities" optionLabel="name" />
+ <div class="content-section implementation">
+ <h3 class="first">Single</h3>
+ <Listbox v-model="selectedCity" :options="cities" optionLabel="name" />
<h3>Advanced with Templating, Filtering and Multiple Selection</h3>
- <Listbox v-model="selectedCars" :options="cars" :multiple="true" :filter="true" optionLabel="brand" listStyle="max-height:250px" style="width:15em">
- <template #option="slotProps">
- <div class="p-clearfix">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="display:inline-block;margin:5px 0 0 5px;width:48px" />
- <span style="float:right;margin:1.25em .5em 0 0">{{slotProps.option.brand}}</span>
+ <Listbox v-model="selectedCars" :options="cars" :multiple="true" :filter="true" optionLabel="brand" listStyle="max-height:250px" style="width:15em">
+ <template #option="slotProps">
+ <div class="p-clearfix">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="display:inline-block;margin:5px 0 0 5px;width:48px" />
+ <span style="float:right;margin:1.25em .5em 0 0">{{slotProps.option.brand}}</span>
</div>
</template>
</Listbox>
diff --git a/src/views/message/MessageDoc.vue b/src/views/message/MessageDoc.vue
index fb29876d4..e2c5e7b5a 100644
--- a/src/views/message/MessageDoc.vue
+++ b/src/views/message/MessageDoc.vue
@@ -13,7 +13,7 @@ import ValidationMessage from 'primevue/validationmessage';
Messages to display can either be defined using the value property which should an array of Message instances.
-<Message v-for="msg of messages" :severity="msg.severity" :key="msg.content">{{msg.content}}</Message>
+<Message v-for="msg of messages" :severity="msg.severity" :key="msg.content">{{msg.content}}</Message>
@@ -42,20 +42,20 @@ data() {
Closable
Messages are closable by default resulting in a close icon being displayed on top right corner. In order to disable closable messages, set closable to false.
-<Message severity="success" :closable="false">Order Submitted</Message>
+<Message severity="success" :closable="false">Order Submitted</Message>
Sticky
Messages are cleared automatically after the timeout defined by life property which is 3 seconds by default. Use sticky mode to make them stay until
they are manually removed.
-<Message severity="warn" :life="5000" :sticky="false">This message will hide in 5 seconds.</Message>
+<Message severity="warn" :life="5000" :sticky="false">This message will hide in 5 seconds.</Message>
ValidationMessage Component
ValidationMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message.
-<InputText placeholder="Username" class="p-error" />
+<InputText placeholder="Username" class="p-error" />
<ValidationMessage>Field is required</ValidationMessage>
@@ -163,36 +163,36 @@ data() {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Message</h1>
<p>Messages is used to display inline messages with various severities.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Severities</h3>
- <Message severity="success">Order Submitted</Message>
- <Message severity="info">PrimeVue Rocks</Message>
- <Message severity="warn">There are unsaved changes</Message>
- <Message severity="error">Validation Failed</Message>
+ <div class="content-section implementation">
+ <h3 class="first">Severities</h3>
+ <Message severity="success">Order Submitted</Message>
+ <Message severity="info">PrimeVue Rocks</Message>
+ <Message severity="warn">There are unsaved changes</Message>
+ <Message severity="error">Validation Failed</Message>
<h3>Dynamic</h3>
- <Button label="Show" @click="addMessages()" />
- <Button label="Clear" @click="removeMessages()" class="p-button-secondary"/>
- <Message v-for="msg of messages" :severity="msg.severity" :key="msg.content">{{msg.content}}</Message>
+ <Button label="Show" @click="addMessages()" />
+ <Button label="Clear" @click="removeMessages()" class="p-button-secondary"/>
+ <Message v-for="msg of messages" :severity="msg.severity" :key="msg.content">{{msg.content}}</Message>
<h3>Auto Dismiss</h3>
- <Message severity="warn" :life="5000" :sticky="false">This message will hide in 5 seconds.</Message>
+ <Message severity="warn" :life="5000" :sticky="false">This message will hide in 5 seconds.</Message>
<h3>Validation Message</h3>
- <div class="p-grid">
- <div class="p-col-12">
- <InputText placeholder="Username" class="p-error" />
+ <div class="p-grid">
+ <div class="p-col-12">
+ <InputText placeholder="Username" class="p-error" />
<ValidationMessage>Field is required</ValidationMessage>
</div>
- <div class="p-col-12">
- <InputText placeholder="Email" class="p-error" :closable="false" />
+ <div class="p-col-12">
+ <InputText placeholder="Email" class="p-error" :closable="false" />
<ValidationMessage />
</div>
</div>
diff --git a/src/views/multiselect/MultiSelectDoc.vue b/src/views/multiselect/MultiSelectDoc.vue
index 961f0d478..0a96da2ad 100644
--- a/src/views/multiselect/MultiSelectDoc.vue
+++ b/src/views/multiselect/MultiSelectDoc.vue
@@ -10,7 +10,7 @@ import MultiSelect from 'primevue/multiselect';
Getting Started
MultiSelect requires a value to bind and a collection of arbitrary objects along with the optionLabel property to specify the label property of the option.
-<MultiSelect v-model="selectedCars" :options="cars" optionLabel="brand" placeholder="Select Brands" />
+<MultiSelect v-model="selectedCars" :options="cars" optionLabel="brand" placeholder="Select Brands" />
@@ -37,19 +37,19 @@ data() {
In addition the value template can be used to customize the selected values display instead of the default comma separated list.
-<MultiSelect v-model="selectedCars2" :options="cars" optionLabel="brand" placeholder="Select a Car">
- <template #value="slotProps">
- <div class="p-multiselect-car-token" v-for="option of slotProps.value" :key="option.brand">
- <img :alt="option.brand" :src="'/demo/images/car/' + option.brand + '.png'" />
+<MultiSelect v-model="selectedCars2" :options="cars" optionLabel="brand" placeholder="Select a Car">
+ <template #value="slotProps">
+ <div class="p-multiselect-car-token" v-for="option of slotProps.value" :key="option.brand">
+ <img :alt="option.brand" :src="'/demo/images/car/' + option.brand + '.png'" />
<span>{{option.brand}}</span>
</div>
- <div class="p-multiselect-empty-car-token" v-if="!slotProps.value || slotProps.value.length === 0">
+ <div class="p-multiselect-empty-car-token" v-if="!slotProps.value || slotProps.value.length === 0">
Select Brands
</div>
</template>
- <template #option="slotProps">
- <div class="p-multiselect-car-option">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" />
+ <template #option="slotProps">
+ <div class="p-multiselect-car-option">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" />
<span>{{slotProps.option.brand}}</span>
</div>
</template>
@@ -60,7 +60,7 @@ data() {
Filter
Filtering allows searching items in the list using an input field at the header. In order to use filtering, enable the filter property.
-<MultiSelect v-model="selectedCars" :options="cars" :filter="true" optionLabel="brand" placeholder="Select Brands"/>
+<MultiSelect v-model="selectedCars" :options="cars" :filter="true" optionLabel="brand" placeholder="Select Brands"/>
Properties
@@ -237,31 +237,31 @@ data() {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>MultiSelect</h1>
<p>MultiSelect is used to multiple values from a list of options.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <MultiSelect v-model="selectedCars1" :options="cars" optionLabel="brand" placeholder="Select Brands" />
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <MultiSelect v-model="selectedCars1" :options="cars" optionLabel="brand" placeholder="Select Brands" />
<h3>Advanced with Templating and Filtering</h3>
- <MultiSelect v-model="selectedCars2" :options="cars" optionLabel="brand" placeholder="Select a Car" :filter="true">
- <template #value="slotProps">
- <div class="p-multiselect-car-token" v-for="option of slotProps.value" :key="option.brand">
- <img :alt="option.brand" :src="'/demo/images/car/' + option.brand + '.png'" />
+ <MultiSelect v-model="selectedCars2" :options="cars" optionLabel="brand" placeholder="Select a Car" :filter="true">
+ <template #value="slotProps">
+ <div class="p-multiselect-car-token" v-for="option of slotProps.value" :key="option.brand">
+ <img :alt="option.brand" :src="'/demo/images/car/' + option.brand + '.png'" />
<span>{{option.brand}}</span>
</div>
- <div class="p-multiselect-empty-car-token" v-if="!slotProps.value || slotProps.value.length === 0">
+ <div class="p-multiselect-empty-car-token" v-if="!slotProps.value || slotProps.value.length === 0">
Select Brands
</div>
</template>
- <template #option="slotProps">
- <div class="p-multiselect-car-option">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" />
+ <template #option="slotProps">
+ <div class="p-multiselect-car-option">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" />
<span>{{slotProps.option.brand}}</span>
</div>
</template>
diff --git a/src/views/overlaypanel/OverlayPanelDoc.vue b/src/views/overlaypanel/OverlayPanelDoc.vue
index 1e3010bbf..8d314c19c 100644
--- a/src/views/overlaypanel/OverlayPanelDoc.vue
+++ b/src/views/overlaypanel/OverlayPanelDoc.vue
@@ -10,10 +10,10 @@ import OverlayPanel from 'primevue/overlaypanel';
Getting Started
OverlayPanel is accessed via its reference where visibility is controlled using toggle, show and hide methods.
-<Button type="button" label="Toggle" @click="toggle" />
+<Button type="button" label="Toggle" @click="toggle" />
-<OverlayPanel ref="op">
- <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
+<OverlayPanel ref="op">
+ <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
</OverlayPanel>
@@ -27,8 +27,8 @@ toggle(event) {
Clicking outside the overlay hides the panel, setting dismissable to false disables this behavior.
Additionally enablign showCloseIcon property displays a close icon at the top right corner to close the panel.
-<OverlayPanel ref="op" :showCloseIcon="true" :dismissable="true">
- <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
+<OverlayPanel ref="op" :showCloseIcon="true" :dismissable="true">
+ <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
</OverlayPanel>
@@ -148,18 +148,18 @@ toggle(event) {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>OverlayPanel</h1>
<p>OverlayPanel is a container component that can overlay other components on page.</p>
</div>
</div>
- <div class="content-section implementation">
- <Button type="button" label="Toggle" @click="toggle" />
+ <div class="content-section implementation">
+ <Button type="button" label="Toggle" @click="toggle" />
- <OverlayPanel ref="op" appendTo="body" :showCloseIcon="true">
- <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
+ <OverlayPanel ref="op" appendTo="body" :showCloseIcon="true">
+ <img src="/demo/images/nature/nature1.jpg" alt="Nature Image">
</OverlayPanel>
</div>
</div>
diff --git a/src/views/paginator/PaginatorDoc.vue b/src/views/paginator/PaginatorDoc.vue
index e113b9c0a..2128ca78d 100644
--- a/src/views/paginator/PaginatorDoc.vue
+++ b/src/views/paginator/PaginatorDoc.vue
@@ -54,13 +54,13 @@ import Paginator from 'primevue/paginator';
<Paginator :first.sync="offset" :rows="10" :totalRecords="totalItemsCount">
- <template #left="slotProps">
+ <template #left="slotProps">
Page: {{slotProps.state.page}}
First: {{slotProps.state.first}}
Rows: {{slotProps.state.rows}}
</template>
<template #right>
- <Button type="button" icon="pi pi-search" />
+ <Button type="button" icon="pi pi-search" />
</template>
</Paginator>
@@ -221,29 +221,29 @@ onPage(event) {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Paginator</h1>
<p>Paginator is a generic component to display content in paged format.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Default</h3>
- <Paginator :first.sync="first" :rows.sync="rows" :totalRecords="totalRecords" :rowsPerPageOptions="[10,20,30]"></Paginator>
+ <div class="content-section implementation">
+ <h3 class="first">Default</h3>
+ <Paginator :first.sync="first" :rows.sync="rows" :totalRecords="totalRecords" :rowsPerPageOptions="[10,20,30]"></Paginator>
<h3>Custom Template</h3>
- <Paginator :first.sync="first2" :rows="1" :totalRecords="totalRecords2" @page-change="onPageChangeCustom($event)" template="FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink">
+ <Paginator :first.sync="first2" :rows="1" :totalRecords="totalRecords2" @page-change="onPageChangeCustom($event)" template="FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink">
<template #left>
- <Button type="button" icon="pi pi-refresh" @click="reset()"/>
+ <Button type="button" icon="pi pi-refresh" @click="reset()"/>
</template>
<template #right>
- <Button type="button" icon="pi pi-search" />
+ <Button type="button" icon="pi pi-search" />
</template>
</Paginator>
- <div class="image-gallery">
- <img :src="'/demo/images/nature/' + image + '.jpg'" />
+ <div class="image-gallery">
+ <img :src="'/demo/images/nature/' + image + '.jpg'" />
</div>
</div>
diff --git a/src/views/panel/PanelDoc.vue b/src/views/panel/PanelDoc.vue
index 91f85e41b..feef78929 100644
--- a/src/views/panel/PanelDoc.vue
+++ b/src/views/panel/PanelDoc.vue
@@ -10,7 +10,7 @@ import Panel from 'primevue/panel';
Getting Started
Panel is a container component that accepts content as its children.
-<Panel header="Godfather I">
+<Panel header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
@@ -21,7 +21,7 @@ import Panel from 'primevue/panel';
Toggleable
Content of the panel can be expanded and collapsed using toggleable option.
-<Panel header="Godfather I" :toggleable="true">
+<Panel header="Godfather I" :toggleable="true">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
@@ -132,16 +132,16 @@ import Panel from 'primevue/panel';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Panel</h1>
<p>Panel is a grouping component with the optional content toggle feature.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Regular</h3>
- <Panel header="Godfather I">
+ <div class="content-section implementation">
+ <h3 class="first">Regular</h3>
+ <Panel header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
@@ -149,7 +149,7 @@ import Panel from 'primevue/panel';
</Panel>
<h3>Toggleable</h3>
- <Panel header="Godfather I" :toggleable="true">
+ <Panel header="Godfather I" :toggleable="true">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
diff --git a/src/views/password/PasswordDoc.vue b/src/views/password/PasswordDoc.vue
index 4623f1c86..955f1b4c3 100644
--- a/src/views/password/PasswordDoc.vue
+++ b/src/views/password/PasswordDoc.vue
@@ -10,7 +10,7 @@ import Password from 'primevue/password';
Getting Started
A model can be bound using the standard v-model directive.
-<Password v-model="value" />
+<Password v-model="value" />
Properties
@@ -98,15 +98,15 @@ import Password from 'primevue/password';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Password</h1>
<p>Password displays strength indicator for password fields.</p>
</div>
</div>
- <div class="content-section implementation">
- <Password v-model="value" />
+ <div class="content-section implementation">
+ <Password v-model="value" />
</div>
</div>
</template>
diff --git a/src/views/progressbar/ProgressBarDoc.vue b/src/views/progressbar/ProgressBarDoc.vue
index 952018018..e5dbedf5a 100644
--- a/src/views/progressbar/ProgressBarDoc.vue
+++ b/src/views/progressbar/ProgressBarDoc.vue
@@ -10,7 +10,7 @@ import ProgressBar from 'primevue/progressbar';
Getting Started
ProgressBar has two modes; "determinate" (default) and "indeterminate". In determinate mode, a value between 0 and 100 is required to display the progress.
-<ProgressBar :value="value" />
+<ProgressBar :value="value" />
data() {
@@ -22,7 +22,7 @@ data() {
Indeterminate is simplly enabled using mode property.
-<ProgressBar mode="indeterminate"/>
+<ProgressBar mode="indeterminate"/>
Properties
@@ -106,22 +106,22 @@ data() {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>ProgressBar</h1>
<p>ProgressBar is a process status indicator.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Dynamic</h3>
- <ProgressBar :value="value1" />
+ <div class="content-section implementation">
+ <h3 class="first">Dynamic</h3>
+ <ProgressBar :value="value1" />
<h3>Static</h3>
- <ProgressBar :value="value2" :showValue="false" />
+ <ProgressBar :value="value2" :showValue="false" />
<h3>Indeterminate</h3>
- <ProgressBar mode="indeterminate" style="height: .5em" />
+ <ProgressBar mode="indeterminate" style="height: .5em" />
</div>
</div>
</template>
diff --git a/src/views/radiobutton/RadioButtonDoc.vue b/src/views/radiobutton/RadioButtonDoc.vue
index 97123e4bc..c9c21dc12 100644
--- a/src/views/radiobutton/RadioButtonDoc.vue
+++ b/src/views/radiobutton/RadioButtonDoc.vue
@@ -10,8 +10,8 @@ import RadioButton from 'primevue/radiobutton';
Getting Started
Two-way value binding is defined using the standard v-model directive.
-<RadioButton inputId="city1" name="city" value="Chicago" v-model="city" />
-<RadioButton inputId="city2" name="city" value="Los Angeles" v-model="city" />
+<RadioButton inputId="city1" name="city" value="Chicago" v-model="city" />
+<RadioButton inputId="city2" name="city" value="Los Angeles" v-model="city" />
export default {
@@ -139,43 +139,43 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>RadioButton</h1>
<p>RadioButton is an extension to standard radio button element with theming.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <div class="p-grid">
- <div class="p-col-12">
- <RadioButton id="city1" name="city" value="Chicago" v-model="city" />
- <label for="city1" class="p-radiobutton-label">Chicago</label>
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <div class="p-grid">
+ <div class="p-col-12">
+ <RadioButton id="city1" name="city" value="Chicago" v-model="city" />
+ <label for="city1" class="p-radiobutton-label">Chicago</label>
</div>
- <div class="p-col-12">
- <RadioButton id="city2" name="city" value="Los Angeles" v-model="city" />
- <label for="city2" class="p-radiobutton-label">Los Angeles</label>
+ <div class="p-col-12">
+ <RadioButton id="city2" name="city" value="Los Angeles" v-model="city" />
+ <label for="city2" class="p-radiobutton-label">Los Angeles</label>
</div>
- <div class="p-col-12">
- <RadioButton id="city3" name="city" value="New York" v-model="city" />
- <label for="city3" class="p-radiobutton-label">New York</label>
+ <div class="p-col-12">
+ <RadioButton id="city3" name="city" value="New York" v-model="city" />
+ <label for="city3" class="p-radiobutton-label">New York</label>
</div>
- <div class="p-col-12">
- <RadioButton id="city4" name="city" value="San Francisco" v-model="city" />
- <label for="city4" class="p-radiobutton-label">San Francisco</label>
+ <div class="p-col-12">
+ <RadioButton id="city4" name="city" value="San Francisco" v-model="city" />
+ <label for="city4" class="p-radiobutton-label">San Francisco</label>
</div>
</div>
- <p>Selected City: <span style="font-weight: bold">{{this.city}}</span></p>
+ <p>Selected City: <span style="font-weight: bold">{{this.city}}</span></p>
<h3>Dynamic Values, Preselection, Value Binding and Disabled Option</h3>
- <div class="p-grid">
- <div v-for="theme of themes" :key="theme.key" class="p-col-12">
- <RadioButton :id="theme.key" name="theme" :value="theme" v-model="selectedTheme" :disabled="theme.key === 'U'" />
- <label :for="theme.key" class="p-radiobutton-label">{{theme.name}}</label>
+ <div class="p-grid">
+ <div v-for="theme of themes" :key="theme.key" class="p-col-12">
+ <RadioButton :id="theme.key" name="theme" :value="theme" v-model="selectedTheme" :disabled="theme.key === 'U'" />
+ <label :for="theme.key" class="p-radiobutton-label">{{theme.name}}</label>
</div>
</div>
- <p>Selected Theme: <span style="font-weight: bold">{{this.selectedTheme}}</span></p>
+ <p>Selected Theme: <span style="font-weight: bold">{{this.selectedTheme}}</span></p>
</div>
</div>
</template>
diff --git a/src/views/rating/RatingDoc.vue b/src/views/rating/RatingDoc.vue
index dddac60dd..5af460a67 100644
--- a/src/views/rating/RatingDoc.vue
+++ b/src/views/rating/RatingDoc.vue
@@ -10,19 +10,19 @@ import Rating from 'primevue/rating';
Getting Started
Two-way value binding is defined using v-model.
-<Rating v-model="val" />
+<Rating v-model="val" />
Number of Stars
Number of stars to display is defined with stars property, default is 5.
-<Rating v-model="val" :stars="7"/>
+<Rating v-model="val" :stars="7"/>
Cancel
A cancel icon is displayed to reset the value by default, set cancel as false to remove this option.
-<Rating v-model="val" :cancel="false" />
+<Rating v-model="val" :cancel="false" />
Properties
@@ -141,25 +141,25 @@ import Rating from 'primevue/rating';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Rating</h1>
<p>Rating component is a star based selection input.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic {{val1}}</h3>
- <Rating v-model="val1" />
+ <div class="content-section implementation">
+ <h3 class="first">Basic {{val1}}</h3>
+ <Rating v-model="val1" />
<h3>No Cancel {{val2}}</h3>
- <Rating v-model="val2" :cancel="false" />
+ <Rating v-model="val2" :cancel="false" />
<h3>ReadOnly</h3>
- <Rating :value="5" :readonly="true" :stars="10" :cancel="false" />
+ <Rating :value="5" :readonly="true" :stars="10" :cancel="false" />
<h3>Disabled</h3>
- <Rating :value="8" :disabled="true" :stars="10" />
+ <Rating :value="8" :disabled="true" :stars="10" />
</div>
</div>
</template>
diff --git a/src/views/selectbutton/SelectButtonDoc.vue b/src/views/selectbutton/SelectButtonDoc.vue
index f79b0acc4..1cdf22ef6 100644
--- a/src/views/selectbutton/SelectButtonDoc.vue
+++ b/src/views/selectbutton/SelectButtonDoc.vue
@@ -10,7 +10,7 @@ import SelectButton from 'primevue/selectbutton';
Getting Started
SelectButton requires a value to bind and a collection of arbitrary objects along with the optionLabel property to specify the label property of the option.
-<SelectButton v-model="selectedCity" :options="cities" optionLabel="name" />
+<SelectButton v-model="selectedCity" :options="cities" optionLabel="name" />
@@ -31,18 +31,18 @@ export default {
Multiple
SelectButton allows selecting only one item by default and setting multiple option enables choosing more than one item. In multiple case, model property should be an array.
-<SelectButton v-model="selectedCity" :options="cities" optionLabel="brand" :multiple="true" />
+<SelectButton v-model="selectedCity" :options="cities" optionLabel="brand" :multiple="true" />
Templating
Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter.
-<SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
- <template #option="slotProps">
- <div style="text-align: center; padding: 1em; width: 125px">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
- <div style="margin-top: 1em">{{slotProps.option.brand}}</div>
+<SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
+ <template #option="slotProps">
+ <div style="text-align: center; padding: 1em; width: 125px">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
+ <div style="margin-top: 1em">{{slotProps.option.brand}}</div>
</div>
</template>
</SelectButton>
@@ -156,32 +156,32 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>SelectButton</h1>
<p>SelectButton is a form component to choose a value from a list of options using button elements.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Single</h3>
- <SelectButton v-model="selectedCity" :options="cities" optionLabel="name" />
- <p>Selected City: <span style="font-weight: bold">{{selectedCity}}</span></p>
+ <div class="content-section implementation">
+ <h3 class="first">Single</h3>
+ <SelectButton v-model="selectedCity" :options="cities" optionLabel="name" />
+ <p>Selected City: <span style="font-weight: bold">{{selectedCity}}</span></p>
<h3>Multiple</h3>
- <SelectButton v-model="selectedCars" :options="cars" optionLabel="brand" :multiple="true" />
- <p>Selected Cars: <span style="font-weight: bold">{{selectedCars}}</span></p>
+ <SelectButton v-model="selectedCars" :options="cars" optionLabel="brand" :multiple="true" />
+ <p>Selected Cars: <span style="font-weight: bold">{{selectedCars}}</span></p>
<h3>Custom Content</h3>
- <SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
- <template #option="slotProps">
- <div style="text-align: center; padding: 1em; width: 125px">
- <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
- <div style="margin-top: 1em">{{slotProps.option.brand}}</div>
+ <SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
+ <template #option="slotProps">
+ <div style="text-align: center; padding: 1em; width: 125px">
+ <img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
+ <div style="margin-top: 1em">{{slotProps.option.brand}}</div>
</div>
</template>
</SelectButton>
- <p>Selected Car: <span style="font-weight: bold">{{selectedCar}}</span></p>
+ <p>Selected Car: <span style="font-weight: bold">{{selectedCar}}</span></p>
</div>
</div>
</template>
diff --git a/src/views/sidebar/SidebarDoc.vue b/src/views/sidebar/SidebarDoc.vue
index 2c96ca11e..4a2ee1974 100644
--- a/src/views/sidebar/SidebarDoc.vue
+++ b/src/views/sidebar/SidebarDoc.vue
@@ -10,17 +10,17 @@ import Sidebar from 'primevue/sidebar';
Getting Started
Sidebar is used as a container and visibility is controlled with visible property.
-<Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
+<Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
Content
</Sidebar>
-<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
+<Button icon="pi pi-arrow-right" @click="visibleLeft = true" />
Position
Sidebar can either be located on the left (default), right, top or bottom of the screen depending on the position property.
-<Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
+<Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
Content
</Sidebar>
@@ -28,15 +28,15 @@ import Sidebar from 'primevue/sidebar';
Size
Sidebar size can be changed using a fixed value or using one of the three predefined ones.
-<Sidebar :visible.sync="visibleLeft" class="p-sidebar-sm"></Sidebar>
-<Sidebar :visible.sync="visibleLeft" class="p-sidebar-md"></Sidebar>
-<Sidebar :visible.sync="visibleLeft" class="p-sidebar-lg"></Sidebar>
+<Sidebar :visible.sync="visibleLeft" class="p-sidebar-sm"></Sidebar>
+<Sidebar :visible.sync="visibleLeft" class="p-sidebar-md"></Sidebar>
+<Sidebar :visible.sync="visibleLeft" class="p-sidebar-lg"></Sidebar>
Full Screen
Full screen mode allows the sidebar to cover whole screen.
-<Sidebar :visible.sync="visibleFull" position="full">
+<Sidebar :visible.sync="visibleFull" position="full">
Content
</Sidebar>
@@ -200,49 +200,49 @@ import Sidebar from 'primevue/sidebar';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Sidebar</h1>
<p>Sidebar is a panel component displayed as an overlay at the edges of the screen.</p>
</div>
</div>
- <div class="content-section implementation">
- <Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
- <h1 style="fontWeight:normal">Left Sidebar</h1>
- <Button type="button" @click="visibleLeft = false" label="Save" class="p-button-success" style="margin-right:.25em" />
- <Button type="button" @click="visibleLeft = false" label="Cancel" class="p-button-secondary"/>
+ <div class="content-section implementation">
+ <Sidebar :visible.sync="visibleLeft" :baseZIndex="1000">
+ <h1 style="fontWeight:normal">Left Sidebar</h1>
+ <Button type="button" @click="visibleLeft = false" label="Save" class="p-button-success" style="margin-right:.25em" />
+ <Button type="button" @click="visibleLeft = false" label="Cancel" class="p-button-secondary"/>
</Sidebar>
- <Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
- <h1 style="fontWeight:normal">Right Sidebar</h1>
- <Button type="button" @click="visibleRight = false" label="Save" class="p-button-success" style="margin-right:.25em" />
- <Button type="button" @click="visibleRight = false" label="Cancel" class="p-button-secondary"/>
+ <Sidebar :visible.sync="visibleRight" :baseZIndex="1000" position="right">
+ <h1 style="fontWeight:normal">Right Sidebar</h1>
+ <Button type="button" @click="visibleRight = false" label="Save" class="p-button-success" style="margin-right:.25em" />
+ <Button type="button" @click="visibleRight = false" label="Cancel" class="p-button-secondary"/>
</Sidebar>
- <Sidebar :visible.sync="visibleTop" :baseZIndex="1000" position="top">
- <h1 style="fontWeight:normal">Top Sidebar</h1>
- <Button type="button" @click="visibleTop = false" label="Save" class="p-button-success" style="margin-right:.25em" />
- <Button type="button" @click="visibleTop = false" label="Cancel" class="p-button-secondary"/>
+ <Sidebar :visible.sync="visibleTop" :baseZIndex="1000" position="top">
+ <h1 style="fontWeight:normal">Top Sidebar</h1>
+ <Button type="button" @click="visibleTop = false" label="Save" class="p-button-success" style="margin-right:.25em" />
+ <Button type="button" @click="visibleTop = false" label="Cancel" class="p-button-secondary"/>
</Sidebar>
- <Sidebar :visible.sync="visibleBottom" :baseZIndex="1000" position="bottom">
- <h1 style="fontWeight:normal">Bottom Sidebar</h1>
- <Button type="button" @click="visibleBottom = false" label="Save" class="p-button-success" style="margin-right:.25em" />
- <Button type="button" @click="visibleBottom = false" label="Cancel" class="p-button-secondary"/>
+ <Sidebar :visible.sync="visibleBottom" :baseZIndex="1000" position="bottom">
+ <h1 style="fontWeight:normal">Bottom Sidebar</h1>
+ <Button type="button" @click="visibleBottom = false" label="Save" class="p-button-success" style="margin-right:.25em" />
+ <Button type="button" @click="visibleBottom = false" label="Cancel" class="p-button-secondary"/>
</Sidebar>
- <Sidebar :visible.sync="visibleFull" :baseZIndex="1000" position="full">
- <h1 style="fontWeight:normal">Full Screen</h1>
- <Button type="button" @click="visibleFull = false" label="Save" class="p-button-success" style="margin-right:.25em" />
- <Button type="button" @click="visibleFull = false" label="Cancel" class="p-button-secondary"/>
+ <Sidebar :visible.sync="visibleFull" :baseZIndex="1000" position="full">
+ <h1 style="fontWeight:normal">Full Screen</h1>
+ <Button type="button" @click="visibleFull = false" label="Save" class="p-button-success" style="margin-right:.25em" />
+ <Button type="button" @click="visibleFull = false" label="Cancel" class="p-button-secondary"/>
</Sidebar>
- <Button icon="pi pi-arrow-right" @click="visibleLeft = true" style="margin-right:.25em" />
- <Button icon="pi pi-arrow-left" @click="visibleRight = true" style="margin-right:.25em" />
- <Button icon="pi pi-arrow-down" @click="visibleTop = true" style="margin-right:.25em" />
- <Button icon="pi pi-arrow-up" @click="visibleBottom = true" style="margin-right:.25em" />
- <Button icon="pi pi-th-large" @click="visibleFull = true" />
+ <Button icon="pi pi-arrow-right" @click="visibleLeft = true" style="margin-right:.25em" />
+ <Button icon="pi pi-arrow-left" @click="visibleRight = true" style="margin-right:.25em" />
+ <Button icon="pi pi-arrow-down" @click="visibleTop = true" style="margin-right:.25em" />
+ <Button icon="pi pi-arrow-up" @click="visibleBottom = true" style="margin-right:.25em" />
+ <Button icon="pi pi-th-large" @click="visibleFull = true" />
</div>
</div>
</template>
diff --git a/src/views/slider/SliderDoc.vue b/src/views/slider/SliderDoc.vue
index d9c19e871..a91971660 100644
--- a/src/views/slider/SliderDoc.vue
+++ b/src/views/slider/SliderDoc.vue
@@ -10,14 +10,14 @@ import Slider from 'primevue/slider';
Getting Started
Two-way binding is defined using the standard v-model directive.
-<Slider v-model="value" />
+<Slider v-model="value" />
Range
Range slider provides two handles to define two values. Enable range property and bind an array to implement a range slider.
-<Slider v-model="value" :range="true" />
+<Slider v-model="value" :range="true" />
@@ -33,19 +33,19 @@ export default {
Orientation
Default layout of slider is horizontal, use orientation property for the alternative vertical mode.
-<Slider v-model="value" orientation="vertical" />
+<Slider v-model="value" orientation="vertical" />
Step
Step factor is 1 by default and can be customized with step option.
-<Slider v-model="value" :step="20" />
+<Slider v-model="value" :step="20" />
Min-Max
Boundaries are specified with min and max attributes.
-<Slider v-model="value" :step="20" :min="50" :max="200" />
+<Slider v-model="value" :step="20" :min="50" :max="200" />
Properties
@@ -175,29 +175,29 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Slider</h1>
<p>Slider is an input component to provide a numerical input.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic: {{value1}}</h3>
- <Slider v-model="value1" />
+ <div class="content-section implementation">
+ <h3 class="first">Basic: {{value1}}</h3>
+ <Slider v-model="value1" />
<h3>Input: {{value2}}</h3>
- <InputText v-model.number="value2" />
- <Slider v-model="value2" />
+ <InputText v-model.number="value2" />
+ <Slider v-model="value2" />
<h3>Step: {{value3}}</h3>
- <Slider v-model="value3" :step="20" />
+ <Slider v-model="value3" :step="20" />
<h3>Range: {{value4}}</h3>
- <Slider v-model="value4" :range="true" />
+ <Slider v-model="value4" :range="true" />
<h3>Vertical: {{value5}}</h3>
- <Slider v-model="value5" orientation="vertical" />
+ <Slider v-model="value5" orientation="vertical" />
</div>
</div>
</template>
diff --git a/src/views/spinner/SpinnerDoc.vue b/src/views/spinner/SpinnerDoc.vue
index 46917c0a5..e001d024a 100644
--- a/src/views/spinner/SpinnerDoc.vue
+++ b/src/views/spinner/SpinnerDoc.vue
@@ -10,19 +10,19 @@ import Spinner from 'primevue/spinner';
Getting Started
Two-way value binding is defined using standard v-model directive.
-<Spinner v-model="value" />
+<Spinner v-model="value" />
Min-Max
Boundaries are specified with min and max attributes.
-<Spinner v-model="value" :min="0" :max="100" />
+<Spinner v-model="value" :min="0" :max="100" />
Step
Step factor is 1 by default and can be customized with step option.
-<Spinner v-model="value" :step="0.25" />
+<Spinner v-model="value" :step="0.25" />
Properties
@@ -112,25 +112,25 @@ import Spinner from 'primevue/spinner';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Spinner</h1>
<p>Spinner is an input component to provide a numerical input.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <Spinner v-model="value1" />
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <Spinner v-model="value1" />
<h3>Min/Max</h3>
- <Spinner v-model="value2" :min="0" :max="100" />
+ <Spinner v-model="value2" :min="0" :max="100" />
<h3>Step</h3>
- <Spinner v-model="value3" :step="0.25" />
+ <Spinner v-model="value3" :step="0.25" />
<h3>Disabled</h3>
- <Spinner v-model="value4" :disabled="true" />
+ <Spinner v-model="value4" :disabled="true" />
</div>
</div>
</template>
diff --git a/src/views/splitbutton/SplitButtonDoc.vue b/src/views/splitbutton/SplitButtonDoc.vue
index a8c2ac67d..cb649d276 100644
--- a/src/views/splitbutton/SplitButtonDoc.vue
+++ b/src/views/splitbutton/SplitButtonDoc.vue
@@ -49,7 +49,7 @@ export default {
-<SplitButton label="Save" icon="pi pi-plus" :model="items"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items"></SplitButton>
Severity
@@ -64,12 +64,12 @@ export default {
-<SplitButton label="Save" icon="pi pi-plus" :model="items"></SplitButton>
-<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-secondary"></SplitButton>
-<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-success"></SplitButton>
-<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-info"></SplitButton>
-<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-warning"></SplitButton>
-<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-danger"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-secondary"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-success"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-info"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-warning"></SplitButton>
+<SplitButton label="Save" icon="pi pi-plus" :model="items" class="p-button-danger"></SplitButton>
Properties
@@ -189,16 +189,16 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>SplitButton</h1>
<p>SplitButton groups a set of commands in an overlay with a default command.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <SplitButton label="Save" icon="pi pi-plus" @click="save" :model="items"></SplitButton>
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <SplitButton label="Save" icon="pi pi-plus" @click="save" :model="items"></SplitButton>
</div>
</div>
</template>
diff --git a/src/views/tabview/TabViewDoc.vue b/src/views/tabview/TabViewDoc.vue
index fdebe5706..6859539a5 100644
--- a/src/views/tabview/TabViewDoc.vue
+++ b/src/views/tabview/TabViewDoc.vue
@@ -11,13 +11,13 @@ import {TabView, TabPanel} from 'primevue/tabview';
Tabview element consists of one or more TabPanel elements. Header of the tab is defined using header attribute.
<TabView>
- <TabPanel header="Header I">
+ <TabPanel header="Header I">
Content I
</TabPanel>
- <TabPanel header="Header II">
+ <TabPanel header="Header II">
Content II
</TabPanel>
- <TabPanel header="Header III">
+ <TabPanel header="Header III">
Content III
</TabPanel>
</TabView>
@@ -27,18 +27,18 @@ import {TabView, TabPanel} from 'primevue/tabview';
Tabs can be controlled programmatically using active property that defines the active tab.
<div>
- <Button icon="pi pi-chevron-left" @click="prev"/>
- <Button icon="pi pi-chevron-right" @click="next"/>
+ <Button icon="pi pi-chevron-left" @click="prev"/>
+ <Button icon="pi pi-chevron-right" @click="next"/>
</div>
<TabView>
- <TabPanel header="Header I" :active="activeIndex === 0">
+ <TabPanel header="Header I" :active="activeIndex === 0">
Content I
</TabPanel>
- <TabPanel header="Header II" :active="activeIndex === 1">
+ <TabPanel header="Header II" :active="activeIndex === 1">
Content II
</TabPanel>
- <TabPanel header="Header III" :active="activeIndex === 2">
+ <TabPanel header="Header III" :active="activeIndex === 2">
Content III
</TabPanel>
</TabView>
@@ -66,13 +66,13 @@ export default {
A tab can be disabled to prevent the content to be displayed by setting the disabled property on a panel.
<TabView>
- <TabPanel header="Header I">
+ <TabPanel header="Header I">
Content I
</TabPanel>
- <TabPanel header="Header II">
+ <TabPanel header="Header II">
Content II
</TabPanel>
- <TabPanel header="Header III" :disabled="true">
+ <TabPanel header="Header III" :disabled="true">
Content III
</TabPanel>
</TabView>
@@ -81,18 +81,18 @@ export default {
Header Template
Header of a tab supports templating to place custom html content instead of strings as well.
-<TabView class="tabview-custom">
+<TabView class="tabview-custom">
<TabPanel>
- <template slot="header">
- <i class="pi pi-calendar"></i>
+ <template slot="header">
+ <i class="pi pi-calendar"></i>
<span>Header I</span>
</template>
Content I
</TabPanel>
<TabPanel>
- <template slot="header">
+ <template slot="header">
<span>Header II</span>
- <i class="pi pi-user"></i>
+ <i class="pi pi-user"></i>
</template>
Content II
</TabPanel>
@@ -202,27 +202,27 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>TabView</h1>
<p>TabView is a container component to group content with tabs.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Default</h3>
+ <div class="content-section implementation">
+ <h3 class="first">Default</h3>
<TabView>
- <TabPanel header="Godfather I">
+ <TabPanel header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</TabPanel>
- <TabPanel header="Godfather II">
+ <TabPanel header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
</TabPanel>
- <TabPanel header="Godfather III">
+ <TabPanel header="Godfather III">
The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
A decade earlier, he gave custody of his two children to Kay, who has since remarried.
@@ -230,23 +230,23 @@ export default {
</TabView>
<h3>Programmatic</h3>
- <div style="padding: .5em 0">
- <Button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" />
- <Button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
+ <div style="padding: .5em 0">
+ <Button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" />
+ <Button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
</div>
<TabView>
- <TabPanel header="Godfather I" :active="activeIndex === 0">
+ <TabPanel header="Godfather I" :active="activeIndex === 0">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</TabPanel>
- <TabPanel header="Godfather II" :active="activeIndex === 1">
+ <TabPanel header="Godfather II" :active="activeIndex === 1">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
</TabPanel>
- <TabPanel header="Godfather III" :active="activeIndex === 2">
+ <TabPanel header="Godfather III" :active="activeIndex === 2">
The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
A decade earlier, he gave custody of his two children to Kay, who has since remarried.
@@ -255,29 +255,29 @@ export default {
<h3>Disabled</h3>
<TabView>
- <TabPanel header="Godfather I">
+ <TabPanel header="Godfather I">
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</TabPanel>
- <TabPanel header="Godfather II">
+ <TabPanel header="Godfather II">
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
</TabPanel>
- <TabPanel header="Godfather III">
+ <TabPanel header="Godfather III">
The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
A decade earlier, he gave custody of his two children to Kay, who has since remarried.
</TabPanel>
- <TabPanel header="Godfather IV" :disabled="true"></TabPanel>
+ <TabPanel header="Godfather IV" :disabled="true"></TabPanel>
</TabView>
<h3>Custom Headers</h3>
- <TabView class="tabview-custom">
+ <TabView class="tabview-custom">
<TabPanel>
- <template slot="header">
- <i class="pi pi-calendar"></i>
+ <template slot="header">
+ <i class="pi pi-calendar"></i>
<span>Godfather I</span>
</template>
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
@@ -285,19 +285,19 @@ export default {
just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
</TabPanel>
<TabPanel>
- <template slot="header">
+ <template slot="header">
<span>Godfather II</span>
- <i class="pi pi-user"></i>
+ <i class="pi pi-user"></i>
</template>
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
</TabPanel>
<TabPanel>
- <template slot="header">
- <i class="pi pi-search"></i>
+ <template slot="header">
+ <i class="pi pi-search"></i>
<span>Godfather III</span>
- <i class="pi pi-cog"></i>
+ <i class="pi pi-cog"></i>
</template>
The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
diff --git a/src/views/textarea/TextareaDoc.vue b/src/views/textarea/TextareaDoc.vue
index b05e49418..f07a4663c 100644
--- a/src/views/textarea/TextareaDoc.vue
+++ b/src/views/textarea/TextareaDoc.vue
@@ -10,13 +10,13 @@ import Textarea from 'primevue/textarea';
Getting Started
A model can be bound using the standard v-model directive.
-<Textarea v-model="value" rows="5" cols="30" />
+<Textarea v-model="value" rows="5" cols="30" />
AutoResize
In auto resize mode, textarea grows instead of displaying a scrollbar.
-<Textarea v-model="value" :autoResize="true" rows="5" cols="30" />
+<Textarea v-model="value" :autoResize="true" rows="5" cols="30" />
Properties
@@ -99,22 +99,22 @@ import Textarea from 'primevue/textarea';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Textarea</h1>
<p>Textarea is a multi-line text input element.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <Textarea v-model="value1" rows="5" cols="30" />
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <Textarea v-model="value1" rows="5" cols="30" />
<h3>Auto Resize</h3>
- <Textarea v-model="value2" :autoResize="true" rows="5" cols="30" />
+ <Textarea v-model="value2" :autoResize="true" rows="5" cols="30" />
<h3>Disabled</h3>
- <Textarea v-model="value3" disabled rows="5" cols="30" />
+ <Textarea v-model="value3" disabled rows="5" cols="30" />
</div>
</div>
</template>
diff --git a/src/views/toast/ToastDoc.vue b/src/views/toast/ToastDoc.vue
index 49199a7af..cffd46cef 100644
--- a/src/views/toast/ToastDoc.vue
+++ b/src/views/toast/ToastDoc.vue
@@ -79,8 +79,8 @@ this.$toast.add({severity:'success', summary: 'Success Message', detail:'Order s
Showing Messages
Show method accepts either a single message or an array of messages.
-<Button label="Success" class="p-button-success" @click="showSuccess" />
-<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
+<Button label="Success" class="p-button-success" @click="showSuccess" />
+<Button @click="showMultiple" label="Multiple" class="p-button-warning" />
@@ -191,55 +191,55 @@ this.$toast.removeAllGroups();
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Toast</h1>
<p>Toast is used to display messages in an overlay.</p>
</div>
</div>
- <div class="content-section implementation p-fluid">
+ <div class="content-section implementation p-fluid">
<h3>Severities</h3>
- <div class="p-grid">
- <div class="p-col-12 p-md-3">
- <Button label="Success" class="p-button-success" @click="showSuccess" />
+ <div class="p-grid">
+ <div class="p-col-12 p-md-3">
+ <Button label="Success" class="p-button-success" @click="showSuccess" />
</div>
- <div class="p-col-12 p-md-3">
- <Button label="Info" class="p-button-info" @click="showInfo" />
+ <div class="p-col-12 p-md-3">
+ <Button label="Info" class="p-button-info" @click="showInfo" />
</div>
- <div class="p-col-12 p-md-3">
- <Button label="Warn" class="p-button-warning" @click="showWarn" />
+ <div class="p-col-12 p-md-3">
+ <Button label="Warn" class="p-button-warning" @click="showWarn" />
</div>
- <div class="p-col-12 p-md-3">
- <Button label="Error" class="p-button-danger" @click="showError" />
+ <div class="p-col-12 p-md-3">
+ <Button label="Error" class="p-button-danger" @click="showError" />
</div>
</div>
<h3>Positions</h3>
- <div class="p-grid">
- <div class="p-col-12 p-md-4">
- <Button label="Top Left" @click="showTopLeft" />
+ <div class="p-grid">
+ <div class="p-col-12 p-md-4">
+ <Button label="Top Left" @click="showTopLeft" />
</div>
- <div class="p-col-12 p-md-4">
- <Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
+ <div class="p-col-12 p-md-4">
+ <Button label="Bottom Left" class="p-button-warning" @click="showBottomLeft" />
</div>
- <div class="p-col-12 p-md-4">
- <Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
+ <div class="p-col-12 p-md-4">
+ <Button label="Bottom Right" class="p-button-success" @click="showBottomRight" />
</div>
</div>
<h3>Options</h3>
- <div class="p-grid">
- <div class="p-col-12 p-md-6">
- <Button @click="showMultiple" label="Multiple" class="p-button-warning" />
+ <div class="p-grid">
+ <div class="p-col-12 p-md-6">
+ <Button @click="showMultiple" label="Multiple" class="p-button-warning" />
</div>
- <div class="p-col-12 p-md-6">
- <Button @click="showSticky" label="Sticky" />
+ <div class="p-col-12 p-md-6">
+ <Button @click="showSticky" label="Sticky" />
</div>
</div>
<h3>Remove All</h3>
- <Button @click="clear" label="Clear" />
+ <Button @click="clear" label="Clear" />
</div>
</div>
</template>
diff --git a/src/views/togglebutton/ToggleButtonDoc.vue b/src/views/togglebutton/ToggleButtonDoc.vue
index 3677c8679..cde788784 100644
--- a/src/views/togglebutton/ToggleButtonDoc.vue
+++ b/src/views/togglebutton/ToggleButtonDoc.vue
@@ -10,7 +10,7 @@ import ToggleButton from 'primevue/togglebutton';
Getting Started
Two-way binding to a boolean property is defined using the standard v-model directive.
-<ToggleButton v-model="checked" />
+<ToggleButton v-model="checked" />
As model is two-way binding enabled, setting the bound value as true displays the state as checked.
@@ -27,7 +27,7 @@ export default {
Labels and Icons
Icons and Labels can be customized using onLabel, offLabel, onIcon and offIcon properties.
-<ToggleButton v-model="checked" onLabel="I confirm" offLabel="I reject" onIcon="pi pi-check" offIcon="pi pi-times" />
+<ToggleButton v-model="checked" onLabel="I confirm" offLabel="I reject" onIcon="pi pi-check" offIcon="pi pi-times" />
Properties
@@ -180,21 +180,21 @@ export default {
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>ToggleButton</h1>
<p>ToggleButton is used to select a boolean value using a button.</p>
</div>
</div>
- <div class="content-section implementation">
- <h3 class="first">Basic</h3>
- <ToggleButton v-model="checked1" onIcon="pi pi-check" offIcon="pi pi-times" />
- <p style="font-weight: bold">{{checked1}}</p>
+ <div class="content-section implementation">
+ <h3 class="first">Basic</h3>
+ <ToggleButton v-model="checked1" onIcon="pi pi-check" offIcon="pi pi-times" />
+ <p style="font-weight: bold">{{checked1}}</p>
<h3>Customized</h3>
- <ToggleButton v-model="checked2" onLabel="I confirm" offLabel="I reject" onIcon="pi pi-check" offIcon="pi pi-times" style="width: 10em" />
- <p style="font-weight: bold">{{checked2}}</p>
+ <ToggleButton v-model="checked2" onLabel="I confirm" offLabel="I reject" onIcon="pi pi-check" offIcon="pi pi-times" style="width: 10em" />
+ <p style="font-weight: bold">{{checked2}}</p>
</div>
</div>
</template>
diff --git a/src/views/toolbar/ToolbarDoc.vue b/src/views/toolbar/ToolbarDoc.vue
index 16e78b06b..c7ffc3e15 100644
--- a/src/views/toolbar/ToolbarDoc.vue
+++ b/src/views/toolbar/ToolbarDoc.vue
@@ -11,17 +11,17 @@ import Toolbar from 'primevue/toolbar';
Toolbar is a container component defined using Toolbar element. Left aligned content is placed inside a template with "left" name and similarly "right" for right alignment..
<Toolbar>
- <template slot="left">
- <Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
- <Button label="Upload" icon="pi pi-upload" class="p-button-success" />
- <i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
- <Button label="Save" icon="pi pi-check" class="p-button-warning" />
+ <template slot="left">
+ <Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
+ <Button label="Upload" icon="pi pi-upload" class="p-button-success" />
+ <i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
+ <Button label="Save" icon="pi pi-check" class="p-button-warning" />
</template>
- <template slot="right">
- <Button icon="pi pi-search" style="margin-right: .25em" />
- <Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
- <Button icon="pi pi-times" class="p-button-danger" />
+ <template slot="right">
+ <Button icon="pi pi-search" style="margin-right: .25em" />
+ <Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
+ <Button icon="pi pi-times" class="p-button-danger" />
</template>
</Toolbar>
@@ -65,26 +65,26 @@ import Toolbar from 'primevue/toolbar';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>Toolbar</h1>
<p>Toolbar is a grouping component for buttons and other content.</p>
</div>
</div>
- <div class="content-section implementation">
+ <div class="content-section implementation">
<Toolbar>
- <template slot="left">
- <Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
- <Button label="Upload" icon="pi pi-upload" class="p-button-success" />
- <i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
- <Button label="Save" icon="pi pi-check" class="p-button-warning" />
+ <template slot="left">
+ <Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
+ <Button label="Upload" icon="pi pi-upload" class="p-button-success" />
+ <i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
+ <Button label="Save" icon="pi pi-check" class="p-button-warning" />
</template>
- <template slot="right">
- <Button icon="pi pi-search" style="margin-right: .25em" />
- <Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
- <Button icon="pi pi-times" class="p-button-danger" />
+ <template slot="right">
+ <Button icon="pi pi-search" style="margin-right: .25em" />
+ <Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
+ <Button icon="pi pi-times" class="p-button-danger" />
</template>
</Toolbar>
</div>
diff --git a/src/views/tristatecheckbox/TriStateCheckboxDoc.vue b/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
index bf9ed21b5..b11970893 100644
--- a/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
+++ b/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
@@ -10,7 +10,7 @@ import TriStateCheckbox from 'primevue/tristatecheckbox';
Getting Started
A model can be bound using the standard v-model directive.
-<TriStateCheckbox v-model="value" />
+<TriStateCheckbox v-model="value" />
Properties
@@ -119,16 +119,16 @@ import TriStateCheckbox from 'primevue/tristatecheckbox';
<template>
<div>
- <div class="content-section introduction">
- <div class="feature-intro">
+ <div class="content-section introduction">
+ <div class="feature-intro">
<h1>TriStateCheckbox</h1>
- <p>TriStateCheckbox is used to select either "true", "false" or "null" as the value.</p>
+ <p>TriStateCheckbox is used to select either "true", "false" or "null" as the value.</p>
</div>
</div>
- <div class="content-section implementation">
- <TriStateCheckbox v-model="value" />
- <p>Value: <span style="font-weight: bold">{{value == null ? 'null' : value}}</span></p>
+ <div class="content-section implementation">
+ <TriStateCheckbox v-model="value" />
+ <p>Value: <span style="font-weight: bold">{{value == null ? 'null' : value}}</span></p>
</div>
</div>
</template>