Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
Getting v-model from a quasar file picker field

In a vue app using quasar, I have three file picker fields, and when one of those fields change, I want to call a specific function. I want to be able to pass the v-model as a variable into the function so I can update the v-model using the function.

See more problem description in the onSelected function description.

For example, I may want to bind the v-model of whatever field was changed to a new variable. So how would I tell the function what v-model was passed at the @change event?

<q-file
      v-model="fieldOne"
      @change="onSelected()"
></q-file>
<q-file
      v-model="fieldTwo"
      @change="onSelected()"
></q-file>
<q-file
      v-model="fieldThree"
      @change="onSelected()"
></q-file>

 function onSelected(event) {
  // I would like to update the v-model of the field that was 
  // subject to the @change event. event.target.value doesn't 
  // work. How to I work with the specific v-model that 
  // triggered 
  //the @change event?
  
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!