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

    qselect options from store

    Help
    3
    4
    222
    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.
    • A
      anasaw last edited by

      i want to display categories in dropdown list
      how to get it from store and loop the it in options

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        @anasaw You haven’t said much. How are your categories stored in a store? What do they look like? Did they come from a adatabase with an id?
        You don’t get much help right away if you don’t provide enough data to work with.

        1 Reply Last reply Reply Quote 0
        • A
          anasaw last edited by

          i’m use categories in many pages so i get it on create and store it

          	let payload = {
          	id:category,
          	category:categories[category]			
          				}
          		payload.category.id=category
          

          and i display it like this

          <select v-model="category" class="form-c" >
              <option v-for="option in categories" v-bind:value="option.id">
                  {{ option.name_en }}
              </option>
          </select>
          

          but i want to use qselect

          metalsadman 1 Reply Last reply Reply Quote 0
          • metalsadman
            metalsadman @anasaw last edited by

            @anasaw just use :options="options_array"do check the docs and its api.

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