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

    Can you style normal elements with Quasar?

    Help
    css html select
    2
    2
    1461
    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.
    • K
      kosciak last edited by

      Hello,

      I’ve select component - I generate options with v-for, like this:

      <select v-model="selected">
        <option v-for="person in computed(1, 3)">
          {{ person.name }}
         </option>
      </select>
      

      It produces output I want, so v-model variable is populated with name. I want to style it like the rest of apps look like. Can I do this? I’m not using <quasar-select> because I don’t know how to regenerate list based on Vuex’s store. 😃

      Any help is appreciated!

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Select documentation: http://quasar-framework.org/components/select.html
        You need a model and options. Options object looks like this (just an example):

        selectOptions: [
          {
            label: 'Google',
            value: 'goog'
          },
          {
            label: 'Facebook',
            value: 'fb'
          },
          ...
        ]
        

        Use Vue computed properties if needed 😉

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