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

    Addbutton in Select component

    Help
    1
    1
    570
    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.
    • R
      rlinkerstain last edited by rlinkerstain

      Hello,
      I’m wondering if I can add an addbutton to the select component.
      Adding it

      
        <q-select
          ref='qw_select'
          v-model='model'
          :label='label'
          @add='this.add_method'
          clearable
          use-input
          use-chips
          @new-value='this.createValue'
          :options='this.values'
            >
            <template v-slot:append='validation'>
              <q-btn color='grey' icon="add"  @click='what_should_i_do_here'>
              </q-btn>
            </template>
        </q-select>
      

      I want to capture the typed value in the input field when the user clicks the add button, but as soon as it leaves the input field, it seems that the values are dropped.
      The input field is behaving like a search field, wich I want by the way, but I want the user to be able to add a new value, when it clicks in the add button.

      Any help is appreciated.
      Kind Regards,
      Ruppert

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