Delete not working?
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 867
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.