CardFormSubmitComponent

This component allows you to create a card component with a form to submit. It depends on ValidationObserver from Vee Validate and it can receive any type of column-component created in the definition binded. It depends on CardComponent component to.

Example

CardFormSubmitComponent

<card-form-submit-component
    v-for="(card, key) in form"
    :key="key"
    :card-title="card.title"
    :submit-url="card.submitUrl"
    :form="card.form"
/>

import TextComponent from 'premium-tesh-ui-lib'
export default {
  name: 'App',
  data() {
    return {
      form: {
        FirstCard: {
          title: 'Time',
          submitUrl: '/url',
          form: {
            FirstField: {
              type: TextComponent,
              value: '',
              default: ''
              'field-wrapper': { class: 'is-12' },
              'field-input': {
                label: 'YourFistFieldLabel',
                placeholder: 'YourFirstFieldPlaceholder'
              }
            },
            SecondField: {
              type: TextComponent,
              value: '',
              default: '',
              'field-wrapper': { class: 'is-12' },
              'field-input': {
                label: 'YourSecondFieldLabel',
                placeholder: 'YourFirstFieldPlaceholder'
              }
            }
          }
        }
      }
    }
  }
}

Props

NameDescriptionTypeRequiredDefault
formThe form to show on the componentObjectfalse-
cardTitleThe card titleStringfalse""
titleClassThe title classStringfalse"is-size-4"
cardSubtitleThe card subtitleStringfalsenull
cardSubtitleClassThe subtitle classStringfalse"is-size-5"
submitUrlThe submit urlStringfalse""
submitDisabledDisable the submit option. you will not able to submitBooleanfalsefalse
localeLocale string {en, es ...} for display language on componentStringfalse"en"