Skip to content

Adding isValid to QForm #16989

Closed Answered by Koutena
Koutena asked this question in Ideas / Proposals
Mar 12, 2024 · 6 comments · 1 reply
Discussion options

You must be logged in to vote

Finally, I was able to achieve my goal by implementing the following:

XForm.vue:

<template>
  <q-form
    ref="xForm"
    greedy
    :style="{ 'min-height': `calc(100dvh - ${props.height ?? '0'})` }"
  >
    <div>
      <slot />
    </div>
    <div
      class="q-mt-lg"
      :class="[
        {
          bordered: !props.hideActionsBorder,
          'absolute-bottom': $q.screen.xs && !isNotSticky,
        },
        props.isCancelable ? 'grid-2 gap-sm' : 'grid-1',
      ]"
    >
      <x-btn-primary
        v-if="isCancelable"
        outline
        class="text-weight-medium rounded-sm"
        :label="$t('actions.cancel')"
        @click="cancel"
      />
      <x-btn-primary
        c…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rstoenescu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Koutena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants