diff --git a/src/views/progressbar/ProgressBarDemo.vue b/src/views/progressbar/ProgressBarDemo.vue
index 73bbcf173..b09943923 100644
--- a/src/views/progressbar/ProgressBarDemo.vue
+++ b/src/views/progressbar/ProgressBarDemo.vue
@@ -17,10 +17,14 @@
Indeterminate
+
+
diff --git a/src/views/progressbar/ProgressBarDoc.vue b/src/views/progressbar/ProgressBarDoc.vue
new file mode 100644
index 000000000..952018018
--- /dev/null
+++ b/src/views/progressbar/ProgressBarDoc.vue
@@ -0,0 +1,166 @@
+
+
+
+
+ Import
+
+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" />
+
+
+data() {
+ return {
+ value: 0
+ }
+}
+
+
+ Indeterminate is simplly enabled using mode property.
+
+<ProgressBar mode="indeterminate"/>
+
+
+ Properties
+
+
+
+
+ Name |
+ Type |
+ Default |
+ Description |
+
+
+
+
+ value |
+ number |
+ null |
+ Current value of the progress. |
+
+
+ showValue |
+ boolean |
+ true |
+ Show or hide progress bar value. |
+
+
+ mode |
+ string |
+ determinate |
+ Defines the mode of the progress, valid values are "determinate" and "indeterminate". |
+
+
+
+
+
+ Styling
+ Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+ Name |
+ Element |
+
+
+
+
+ p-progressbar |
+ Container element. |
+
+
+ p-progressbar-determinate |
+ Container element of a determinate progressbar. |
+
+
+ p-progressbar-indeterminate |
+ Container element of an indeterminate progressbar. |
+
+
+ p-progressbar-value |
+ Element whose width changes according to value. |
+
+
+ p-progressbar-label |
+ Label element that displays the current value. |
+
+
+
+
+
+ Dependencies
+ None.
+
+
+
+
+ View on GitHub
+
+
+
+<template>
+ <div>
+ <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" />
+
+ <h3>Static</h3>
+ <ProgressBar :value="value2" :showValue="false" />
+
+ <h3>Indeterminate</h3>
+ <ProgressBar mode="indeterminate" style="height: .5em" />
+ </div>
+ </div>
+</template>
+
+
+
+
+export default {
+ data() {
+ return {
+ value1: 0,
+ value2: 50
+ }
+ },
+ interval: null,
+ methods: {
+ startProgress() {
+ this.interval = setInterval(() => {
+ let newValue = this.value1 + Math.floor(Math.random() * 10) + 1;
+ if (newValue >= 100) {
+ newValue = 100;
+ }
+ this.value1 = newValue;
+ }, 2000);
+ },
+ endProgress() {
+ clearInterval(this.interval);
+ this.interval = null;
+ }
+ },
+ mounted() {
+ this.startProgress();
+ },
+ beforeDestroy() {
+ this.endProgress();
+ }
+}
+
+
+
+
+
\ No newline at end of file