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

462
Views
How to open component v-file-input, when it is hidden?

I need to use component v-file-input for upload file. But this component not suitable for design.

I try do next. I made this component whole hidden <v-file-input hide-input prepend-icon=""></v-file-input>. Also I made a button, design I need. But I can not start component v-file-input in method by click the button.

How can I start this component in the method?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can try to make label as button, and call method on label click:

.upload {
  margin: 2em;
}
#btn {
  border: 2px solid #3457D5;
  border-radius: .5em;
  padding: 1em;
  cursor: pointer;
}
#btn:hover {
  background: #3457D5;
  color: white;
}
<div class="upload">
  <input id="up" type="file" style="display: none" />
  <label id="btn" for="up">Upload</label>
</div>

about 4 years ago · Juan Pablo Isaza Report
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!