-
- Stacked
-
+
+
+
-
- Horizontal with Step
-
+
+
-
-
Vertical
-
+
+
-
- Min-Max Boundaries
-
+
+
+
@@ -147,7 +147,7 @@ export default {
\ No newline at end of file
diff --git a/src/views/inputnumber/InputNumberDoc.vue b/src/views/inputnumber/InputNumberDoc.vue
index 49b3375a5..1f387a4e5 100755
--- a/src/views/inputnumber/InputNumberDoc.vue
+++ b/src/views/inputnumber/InputNumberDoc.vue
@@ -321,101 +321,101 @@ Vertical
<h3>Numerals</h3>
-<div class="p-grid p-fluid">
- <div class="p-col-12 p-md-3">
- Integer Only
- <InputNumber v-model="value1" />
+<div class="p-fluid p-grid p-formgrid">
+ <div class="p-field p-col-12 p-md-3">
+ <label for="integeronly">Integer Only</label>
+ <InputNumber id="integeronly" v-model="value1" />
</div>
- <div class="p-col-12 p-md-3">
- Without Grouping
- <InputNumber v-model="value2" mode="decimal" :useGrouping="false" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="withoutgrouping">Without Grouping</label>
+ <InputNumber id="withoutgrouping" v-model="value2" mode="decimal" :useGrouping="false" />
</div>
- <div class="p-col-12 p-md-3">
- Min-Max Fraction Digits
- <InputNumber v-model="value3" mode="decimal" :minFractionDigits="2" :maxFractionDigits="5" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="integeronly">Min-Max Fraction Digits</label>
+ <InputNumber id="integeronly" v-model="value3" mode="decimal" :minFractionDigits="2" :maxFractionDigits="5" />
</div>
- <div class="p-col-12 p-md-3">
- Min-Max Boundaries
- <InputNumber v-model="value4" mode="decimal" :min="0" :max="100" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="minmax">Min-Max Boundaries</label>
+ <InputNumber id="minmax" v-model="value4" mode="decimal" :min="0" :max="100" />
</div>
- <div class="p-col-12 p-md-3">
- User Locale
- <InputNumber v-model="value5" mode="decimal" :minFractionDigits="2" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="locale-user">User Locale</label>
+ <InputNumber id="locale-user" v-model="value5" mode="decimal" :minFractionDigits="2" />
</div>
- <div class="p-col-12 p-md-3">
- United State Locale
- <InputNumber v-model="value6" mode="decimal" locale="en-US" :minFractionDigits="2" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="locale-us">United States Locale</label>
+ <InputNumber id="locale-us" v-model="value6" mode="decimal" locale="en-US" :minFractionDigits="2" />
</div>
- <div class="p-col-12 p-md-3">
- German Locale
- <InputNumber v-model="value7" mode="decimal" locale="de-DE" :minFractionDigits="2"/>
+ <div class="p-field p-col-12 p-md-3">
+ <label for="locale-german">German Locale</label>
+ <InputNumber id="locale-german" v-model="value7" mode="decimal" locale="de-DE" :minFractionDigits="2"/>
</div>
- <div class="p-col-12 p-md-3">
- Indian Locale
- <InputNumber v-model="value8" mode="decimal" locale="en-IN" :minFractionDigits="2" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="locale-japan">Indian Locale</label>
+ <InputNumber id="locale-japan" v-model="value8" mode="decimal" locale="en-IN" :minFractionDigits="2" />
</div>
</div>
<h3>Currency</h3>
<div class="p-grid p-fluid">
- <div class="p-col-12 p-md-3">
- United States
- <InputNumber v-model="value9" mode="currency" currency="USD" locale="en-US" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="currency-us">United States</label>
+ <InputNumber id="currency-us" v-model="value9" mode="currency" currency="USD" locale="en-US" />
</div>
- <div class="p-col-12 p-md-3">
- Germany
- <InputNumber v-model="value10" mode="currency" currency="EUR" locale="de-DE" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="currency-germany">Germany</label>
+ <InputNumber id="currency-germany" v-model="value10" mode="currency" currency="EUR" locale="de-DE" />
</div>
- <div class="p-col-12 p-md-3">
- India
- <InputNumber v-model="value11" mode="currency" currency="INR" currencyDisplay="code" locale="en-IN" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="currency-india">India</label>
+ <InputNumber id="currency-india" v-model="value11" mode="currency" currency="INR" currencyDisplay="code" locale="en-IN" />
</div>
- <div class="p-col-12 p-md-3">
- Japan
- <InputNumber v-model="value12" mode="currency" currency="JPY" locale="jp-JP" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="currency-japan">Japan</label>
+ <InputNumber id="currency-japan" v-model="value12" mode="currency" currency="JPY" locale="jp-JP" />
</div>
</div>
<h3>Prefix and Suffix</h3>
<div class="p-grid p-fluid">
- <div class="p-col-12 p-md-3">
- Mile
- <InputNumber v-model="value13" suffix=" mi" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="mile">Mile</label>
+ <InputNumber id="mile" v-model="value13" suffix=" mi" />
</div>
- <div class="p-col-12 p-md-3">
- Percent
- <InputNumber v-model="value14" prefix="%" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="percent">Percent</label>
+ <InputNumber id="percent" v-model="value14" prefix="%" />
</div>
- <div class="p-col-12 p-md-3">
- Expiry
- <InputNumber v-model="value15" prefix="Expires in " suffix=" days" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="expiry">Expiry</label>
+ <InputNumber id="expiry" v-model="value15" prefix="Expires in " suffix=" days" />
</div>
- <div class="p-col-12 p-md-3">
- Temperature
- <InputNumber v-model="value16" prefix="↑ " suffix="℃" :min="0" :max="40" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="temperature">Temperature</label>
+ <InputNumber id="temperature" v-model="value16" prefix="↑ " suffix="℃" :min="0" :max="40" />
</div>
</div>
<h3>Buttons</h3>
<div class="p-grid p-fluid">
- <div class="p-col-12 p-md-3">
- Stacked
- <InputNumber v-model="value17" showButtons mode="currency" currency="USD" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="stacked">Stacked</label>
+ <InputNumber id="stacked" v-model="value17" showButtons mode="currency" currency="USD" />
</div>
- <div class="p-col-12 p-md-3">
- Horizontal with Step
- <InputNumber v-model="value18" showButtons buttonLayout="horizontal" spinnerMode="horizontal" :step="0.25"
- decrementButtonclass="p-button-danger" incrementButtonclass="p-button-success" incrementButtonIcon="pi pi-plus" decrementButtonIcon="pi pi-minus" mode="currency" currency="EUR" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="horizontal">Horizontal with Step</label>
+ <InputNumber id="horizontal" v-model="value18" showButtons buttonLayout="horizontal" spinnerMode="horizontal" :step="0.25"
+ decrementButtonClass="p-button-danger" incrementButtonClass="p-button-success" incrementButtonIcon="pi pi-plus" decrementButtonIcon="pi pi-minus" mode="currency" currency="EUR" />
</div>
- <div class="p-col-12 p-md-3">
- <div>Vertical</div>
- <InputNumber v-model="value19" mode="decimal" showButtons buttonLayout="vertical" spinnerMode="vertical"
+ <div class="p-field p-col-12 p-md-3">
+ <label for="vertical">Vertical</label>
+ <InputNumber id="vertical" v-model="value19" mode="decimal" showButtons buttonLayout="vertical" spinnerMode="vertical"
decrementButtonClass="p-button-secondary" incrementButtonClass="p-button-secondary" incrementButtonIcon="pi pi-plus" decrementButtonIcon="pi pi-minus" />
</div>
- <div class="p-col-12 p-md-3">
- Min-Max Boundaries
- <InputNumber v-model="value20" mode="decimal" showButtons :min="0" :max="100" />
+ <div class="p-field p-col-12 p-md-3">
+ <label for="minmax-buttons">Min-Max Boundaries</label>
+ <InputNumber id="minmax-buttons" v-model="value20" mode="decimal" showButtons :min="0" :max="100" />
</div>
</div>
diff --git a/src/views/radiobutton/RadioButtonDemo.vue b/src/views/radiobutton/RadioButtonDemo.vue
index 59941b744..9e1421f32 100755
--- a/src/views/radiobutton/RadioButtonDemo.vue
+++ b/src/views/radiobutton/RadioButtonDemo.vue
@@ -8,33 +8,29 @@
-
Basic
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Basic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Selected City: {{this.city}}
Dynamic Values, Preselection, Value Binding and Disabled Option
-
-
-
-
-
+
+
+
Selected Theme: {{this.selectedTheme}}
@@ -61,15 +57,4 @@ export default {
'RadioButtonDoc': RadioButtonDoc
}
}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/radiobutton/RadioButtonDoc.vue b/src/views/radiobutton/RadioButtonDoc.vue
index eeced1b14..51283eacb 100755
--- a/src/views/radiobutton/RadioButtonDoc.vue
+++ b/src/views/radiobutton/RadioButtonDoc.vue
@@ -138,32 +138,28 @@ export default {
<h3>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>
- <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>
+ <div class="p-field-radiobutton">
+ <RadioButton id="city1" name="city" value="Chicago" v-model="city" />
+ <label for="city1">Chicago</label>
+</div>
+<div class="p-field-radiobutton">
+ <RadioButton id="city2" name="city" value="Los Angeles" v-model="city" />
+ <label for="city2">Los Angeles</label>
+</div>
+<div class="p-field-radiobutton">
+ <RadioButton id="city3" name="city" value="New York" v-model="city" />
+ <label for="city3">New York</label>
+</div>
+<div class="p-field-radiobutton">
+ <RadioButton id="city4" name="city" value="San Francisco" v-model="city" />
+ <label for="city4">San Francisco</label>
</div>
<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>
+<div v-for="theme of themes" :key="theme.key" class="p-field-radiobutton">
+ <RadioButton :id="theme.key" name="theme" :value="theme" v-model="selectedTheme" :disabled="theme.key === 'U'" />
+ <label :for="theme.key">{{theme.name}}</label>
</div>
<p>Selected Theme: <span style="font-weight: bold">{{this.selectedTheme}}</span></p>
diff --git a/src/views/togglebutton/ToggleButtonDemo.vue b/src/views/togglebutton/ToggleButtonDemo.vue
index 90da8d660..a50c6dd3e 100755
--- a/src/views/togglebutton/ToggleButtonDemo.vue
+++ b/src/views/togglebutton/ToggleButtonDemo.vue
@@ -10,11 +10,11 @@
Basic
-
{{checked1}}
+
{{checked1}}
Customized
-
{{checked2}}
+
{{checked2}}
diff --git a/src/views/togglebutton/ToggleButtonDoc.vue b/src/views/togglebutton/ToggleButtonDoc.vue
index 1f6e10510..3f9ce8196 100755
--- a/src/views/togglebutton/ToggleButtonDoc.vue
+++ b/src/views/togglebutton/ToggleButtonDoc.vue
@@ -168,11 +168,11 @@ export default {
<h3>Basic</h3>
<ToggleButton v-model="checked1" onIcon="pi pi-check" offIcon="pi pi-times" />
-<p style="font-weight: bold">{{checked1}}</p>
+<p>{{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>
+<p>{{checked2}}</p>
diff --git a/src/views/tristatecheckbox/TriStateCheckboxDemo.vue b/src/views/tristatecheckbox/TriStateCheckboxDemo.vue
index 0f747717a..1aedaf08b 100755
--- a/src/views/tristatecheckbox/TriStateCheckboxDemo.vue
+++ b/src/views/tristatecheckbox/TriStateCheckboxDemo.vue
@@ -8,13 +8,10 @@
-
-
-
-
-
+
+
+
-
@@ -34,16 +31,4 @@ export default {
'TriStateCheckboxDoc': TriStateCheckboxDoc
}
}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/tristatecheckbox/TriStateCheckboxDoc.vue b/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
index 85deacd62..6323947e4 100755
--- a/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
+++ b/src/views/tristatecheckbox/TriStateCheckboxDoc.vue
@@ -123,8 +123,10 @@ import TriStateCheckbox from 'primevue/tristatecheckbox';
-<TriStateCheckbox v-model="value" />
-<span >{{value == null ? 'null' : value}}</span>
+<div class="p-field-checkbox">
+ <TriStateCheckbox v-model="value" />
+ <label>{{value == null ? 'null' : value}}</label>
+</div>