Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
How to get fire DataTable row on confirm ? using PrimeVue and Vue 3

I use prime face vue. I use DataTable and. I want an click check icon to confirm the change of that row, but I don't know which event triggers that function for me?

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

Which of this events is fired when i click on check icon to confirm editing ?

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] }; 
}, 

very strange because some events trigger me some why not? i guess this is an event that should trigger the function but it doesn't work

onCellEditComplete

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda