smart table
当我尝试里面的按钮时,我遇到了一个问题,add
即使在event.confirm.reject();
看到下面的图片之后,表格仍然存在:
我所说的表格被框成一个红色矩形
这是我的代码:
组件.html:
<ng2-smart-table [settings]="settings" [source]="source" (createConfirm)="addFuction($event)"></ng2-smart-table>
组件.ts
addFuction(event) {
if (window.confirm('Are you sure you want to create?')) {
event.newData['libelle'] += ' + added in code';
event.confirm.resolve(event.newData);
} else {
console.log('test');
event.confirm.reject();
}
}