akveo / akveo/ng2-smart-table

Delete not working?

未关闭
#1,138 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。