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

    Add other param in @filter -> function(inputValue, doneFn, abortFn) method of the QSelect

    Framework
    3
    7
    664
    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
      dwms last edited by

      Is there a possibility to add a fourth parameter to the @filter event?

      Example:
      search (val, update, abort, otherParam)

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by s.molinari

        What would you need it for? Those params come from the QSelect component itself, so any change would need to come from us and for that, there would need to be sufficient reasoning to do it. 🙂

        Scott

        1 Reply Last reply Reply Quote 0
        • D
          dwms last edited by

          I would need to pass for example the search conditions or also the resource to get

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Um, the function you fire with the event can have all of that as part of the scope of your own component. Nothing stopping you. In fact, it’s what you should be doing. Make your own component with the tools given. So, I’m a little confused at the request.

            Check the script here for example:

            https://quasar.dev/vue-components/select#Example--Lazy-load-options

            You can have anything you want in the method shown.

            Scott

            1 Reply Last reply Reply Quote 0
            • D
              dwms last edited by

              I will really solve this is making my own component

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

                @dwms don’t quite get what you’re aiming for, but you can do something like @filter="(val,update,abort) => yourFilterFn(val,update,abort,yourCustomParam)".

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

                  Perfect solution, thankyou

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