No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Same value for attributes

    Help
    1
    1
    69
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • donsherman
      donsherman last edited by

      I got a q-form with some q-tabs inside and inside the q-tab some q-inputs

      My question is: is it somehow avoidable to write 3 times i.e. the same attribute name?
      ( v-model = name = ref = “attributename” )

      so only to write it once per q-input (for v-model i.e.) and all other attributes (ref, name,…) got the same val

                   <q-input
                      v-model="domain"
                      name="domain"
                      ref="domain"
                      autofocus
                      :label="$t('domain.Label')"
                      :hint="$t('domain.hint')"
                      maxlength="50"
                      :rules="[val => !!val || $t('txtRequired')]"
                    />
                    <q-input
                      v-model="db_server"
                      name="db_server"
                      ref="db_server"
                      :label="$t('db_server.Label')"
                      :hint="$t('db_server.hint')"
                      maxlength="100"
                      :rules="[val => !!val || $t('txtRequired')]"
                    />
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post