Skip to content

Commit

Permalink
test: testing overwriting hideFileValidation in KtForm
Browse files Browse the repository at this point in the history
  • Loading branch information
RueRivoli committed May 15, 2024
1 parent c0407c7 commit 9f34470
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/documentation/pages/usage/components/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,40 @@
<ComponentInfo v-bind="{ component }" />
<ClientOnly>
<KtI18nContext :locale="settings.locale">
<KtForm v-model="settings" :hideValidation="true">
<div class="wrapper">
<section>
<h3>Shared Form ↔ Field Settings</h3>
<KtFieldSingleSelect
formKey="size"
helpDescription="Can be overridden in individual fields"
isOptional
:hideValidation="false"

Check warning on line 14 in packages/documentation/pages/usage/components/form.vue

View workflow job for this annotation

GitHub Actions / eslint

Attribute ":hideValidation" should go before "isOptional"
label="Size"
:options="[
{ label: 'small', value: 'small' },
{ label: 'medium (default)', value: 'medium' },
{ label: 'large', value: 'large' },
]"
/>
</section>
<div>
<h3>Form Settings</h3>
<KtFieldSingleSelect
formKey="preventSubmissionOn"
helpDescription="Which types of validation error prevent the form from submitting?"
isOptional
label="Prevent Submission"
:options="[
{ label: 'error (default)', value: 'error' },
{ label: 'warning', value: 'warning' },
{ label: 'NEVER', value: 'NEVER' },
]"
/>
</div>
</div>
</KtForm>

<KtForm v-model="settings">
<div class="wrapper">
<section>
Expand Down

0 comments on commit 9f34470

Please sign in to comment.