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

    Filtering q-table with 2 q-select

    Help
    2
    2
    874
    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.
    • S
      swbsf last edited by

      Hello folks,

      Spent some time already on this, I thought it would be straight forward, but I don’t get it. Also, I’m just taking over this app, but have very limited understanding of the framework right now. So sorry if the question is too obvious. Any help appreciated.

      Basically here is my template :

          <q-select
            v-model="lang"
            :options="available_languages"
            label="Language"
          />
      
          <q-select
            v-model="lang"
            color="lime-11"
            :options="available_subjects"
            label="Subject"
          />
          <q-table
            title="List of available content"
            :data="available_contents"
            :columns="columns"
            :filter="lang"
            row-key="content_id"
            selection="multiple"
            :selected.sync="available_selected"
          >
      

      Here, :options are dynamically generated. And :data taken from a database.
      Each row have content_id, title, language and subject metadata. So how can I just filter out what my table is showing based on selection?
      The script is quite long, if you need any part from it, just ask.

      Thank you for any hints.
      Steven

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

        @swbsf use filter-method to implement your own filter.

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