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

219
Views
Vue3 create componentes dynamic

Hello I was testing Vue3, and I came across a situation that I didn't know how to solve for example.

I have an input component that in loop is created with data from an object, all good, but now I want to pass events to it, it is at this point where I don't know how exactly to pass these events to it. how to read this list

i am trying to create input, using a component, from a json.

Example: https://stackblitz.com/edit/vue-sdkmjl?devtoolsheight=33&file=src/App.vue

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

0

For a specific event handler, it can be specified explicitly:

<InputBase v-bind="input" v-model:value="values[input.name]" @input="input.events?.input" />

For a map of event handlers, it can be passed to v-on directive:

<InputBase v-bind="input" v-model:value="values[input.name]" v-on="input.events || {}" />
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!