Pass parameters to @filter in q-select



  • 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…



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



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

    Bago…


Log in to reply