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

    How can i get the actual value for select options? I am getting the options value as [object Object]

    Framework
    options quasar v1.0.0 select
    1
    2
    188
    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.
    • I
      iamtetea last edited by

      <q-select
      v-model=“product_type”
      :options=“types”
      option-label=“label”
      option-value=“type_name”
      label=“Product Type”
      emit-value
      map-options
      />

      data () {
          return {
              types: []
          }
      },
      created () {
          this.$axios.get(['http://127.0.0.1:8000/api/lailen-inventory/types'])
              .then(res => {
                  this.types = res.data.types
              }).catch(errors => {
                  console.log(errors)
              })
      }
      1 Reply Last reply Reply Quote 0
      • I
        iamtetea last edited by

        Finally i realise where i made a mistake! in case anyone stuck in this error, change option:“label” to “category_name”

        1 Reply Last reply Reply Quote 0
        • First post
          Last post