akveo / akveo/ng2-smart-table

Delete not working?

オープン
#1,138 コメント 5 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。