akveo / akveo/ng2-smart-table

Delete not working?

Abierto
#1,138 5 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
1.6k
Forks
867
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When I delete a row, the row disappears from the view, but it is still present in the data source. So when pushing data to server (with source.getAll()), anything has changed.

I am using internal mode, and also, no event is raised when I try to delete it.
On settings i have
delete.confirmDelete = true;

on html:
(deleteConfirm)="onDeleteConfirm($event)"

on ts:
```
onDeleteConfirm(event) {
if (window.confirm('Are you sure you want to save?')) {
//call to remote api, remember that you have to await this
event.confirm.resolve(event.newData);
} else {
event.confirm.reject();
}
}
```

but it is never called...

Checked everything already in the docs:
https://akveo.github.io/ng2-smart-table/#/documentation

Any ideas?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.