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

    Pass parameters to @filter in q-select

    Framework
    2
    3
    587
    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.
    • B
      bago last edited by

      q-select has the method @filter with 3 options (val, update, abort).
      I need to pass extra parameters to the function but it looks like it’s impossible because the function accept only

      @filter="FilterFn"
      

      I need something like

      @filter="FilterFn('tokyo')"
      

      And later access params like

      FilterFn ({ val, update, abort }, { params }) {
        console.log(params) // 'tokyo'  
      }
      

      Bago…

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

        @bago @filter="(val, update, abort) => { filterFn(val, update, abort, extraParams, extraParams2, ...).

        1 Reply Last reply Reply Quote 2
        • B
          bago last edited by

          @metalsadman Excellent ! Exactly what I was looking for.
          Thanks a lot !

          Bago…

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