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

    Chips from data source

    Help
    chips data source
    3
    3
    1182
    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.
    • D
      daviddlcz last edited by

      Hi,

      I’d like to use chips but possible values should be from a data source.

      I thought of using an autocomplete and @selected would trigger chip’s add() method. But this would not keep user from typing anything else… Using disabled chips is not a solution since user would not have the possibility of removing a chip.

      Any ideas? thanks

      1 Reply Last reply Reply Quote 1
      • D
        dewdad last edited by

        Have you found a solution. I’d be interested to learn.

        Thanks,
        Dewdad

        1 Reply Last reply Reply Quote 0
        • F
          Fabian last edited by Fabian

          I’m doing something similar. In the autocomplete search() I’m adding to the top of the result list the current search term and on selected() I’m adding to an array that I “v-for” on to display chips. Chips can be made closable with the “closable” attribute. The only thing I’m missing is when the chip’s @close event is called, I want to remove the chip from the array. Except the @close event doesn’t send anything that would enable me to find the chip that the user wants to close.
          Edit: OK found how to get @close to work: pass the chip as a parameter to my method call.

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