diff --git a/apps/showcase/doc/toggleswitch/FormDoc.vue b/apps/showcase/doc/toggleswitch/FormDoc.vue new file mode 100644 index 000000000..e9e35e665 --- /dev/null +++ b/apps/showcase/doc/toggleswitch/FormDoc.vue @@ -0,0 +1,124 @@ + + + ToggleSwitch can be used with the PrimeVue Forms library. + + + + + + {{ $form.toggleswitch.errors[0]?.message }} + + + + + + + + diff --git a/apps/showcase/pages/toggleswitch/index.vue b/apps/showcase/pages/toggleswitch/index.vue index 24fdeaab7..9f7bf5ca0 100755 --- a/apps/showcase/pages/toggleswitch/index.vue +++ b/apps/showcase/pages/toggleswitch/index.vue @@ -6,6 +6,7 @@ import AccessibilityDoc from '@/doc/toggleswitch/AccessibilityDoc.vue'; import BasicDoc from '@/doc/toggleswitch/BasicDoc.vue'; import DisabledDoc from '@/doc/toggleswitch/DisabledDoc.vue'; +import FormDoc from '@/doc/toggleswitch/FormDoc.vue'; import ImportDoc from '@/doc/toggleswitch/ImportDoc.vue'; import InvalidDoc from '@/doc/toggleswitch/InvalidDoc.vue'; import PreselectionDoc from '@/doc/toggleswitch/PreselectionDoc.vue'; @@ -27,6 +28,11 @@ export default { label: 'Basic', component: BasicDoc }, + { + id: 'form', + label: 'Form', + component: FormDoc + }, { id: 'preselection', label: 'Preselection',
ToggleSwitch can be used with the PrimeVue Forms library.