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

242
Views
¿Cómo obtener la fila Fire DataTable al confirmar? usando PrimeVue y Vue 3

Yo uso prime face vue. Yo uso DataTable y. Quiero un ícono de verificación de clic para confirmar el cambio de esa fila, pero no sé qué evento activa esa función para mí.

 <DataTable :value="allCompetitors" editMode="row" data-key="competitorNo" @rowEditInit="onRowEditInit" @rowEditCancel="onRowEditCancel" v-model:editingRows="editingRows" @cellEditComplete="onCellEditComplete" responsiveLayout="scroll" > <Column field="nameSurname" header="nameSurname" style="width:8%"> <template #editor="slotProps"> <InputText v-model="slotProps.data[slotProps.column.props.field]" autofocus /> </template> </Column> <Column :rowEditor="true" style="width: 10%; min-width:8rem" bodyStyle="text-align:center"> </Column> </DataTable>

¿Cuál de estos eventos se activa cuando hago clic en el ícono de verificación para confirmar la edición?

 onCellEditComplete(event) { alert('d') // NO FIRE } onCellEdit(newValue, props) { alert('test') // NO FIRE } onRowEditCancel(event) { alert('FIRED') // this is fired... this.allCompetitors[event.index] = this.originalRows[event.index]; }, onRowEditInit(event) { alert('FIRED'); // also fired this.originalRows[event?.index] = { ...this.allCompetitors[event.index] }; },

muy extraño porque algunos eventos me disparan algunos ¿por qué no? Supongo que este es un evento que debería activar la función, pero no funciona.

onCellEditComplete

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!