diff --git a/apps/showcase/doc/rating/FormDoc.vue b/apps/showcase/doc/rating/FormDoc.vue new file mode 100644 index 000000000..18ff88ec0 --- /dev/null +++ b/apps/showcase/doc/rating/FormDoc.vue @@ -0,0 +1,130 @@ + + + Rating can be used with the PrimeVue Forms library. + + + + + + {{ $form.rating.errors[0]?.message }} + + + + + + + + diff --git a/apps/showcase/pages/rating/index.vue b/apps/showcase/pages/rating/index.vue index 7fd7762f5..48ca35bbb 100755 --- a/apps/showcase/pages/rating/index.vue +++ b/apps/showcase/pages/rating/index.vue @@ -6,6 +6,7 @@ import AccessibilityDoc from '@/doc/rating/AccessibilityDoc.vue'; import BasicDoc from '@/doc/rating/BasicDoc.vue'; import DisabledDoc from '@/doc/rating/DisabledDoc.vue'; +import FormDoc from '@/doc/rating/FormDoc.vue'; import ImportDoc from '@/doc/rating/ImportDoc.vue'; import NumberOfStarsDoc from '@/doc/rating/NumberOfStarsDoc.vue'; import ReadOnlyDoc from '@/doc/rating/ReadOnlyDoc.vue'; @@ -27,6 +28,11 @@ export default { label: 'Basic', component: BasicDoc }, + { + id: 'form', + label: 'Form', + component: FormDoc + }, { id: 'numberofstars', label: 'Number of Stars',
Rating can be used with the PrimeVue Forms library.