我想管理我的NG2智能表的编辑功能,但是这个代码不适合我,我有什么问题吗?
HTML
<ng2-smart-table [settings]="settings" [source]="source" (edit)="onEdit($event)"></ng2-smart-table>组件
onEdit(event:any):void{
console.log("edit model");}我可以添加新的按钮,并管理您的行为,任何我想知道的方式,如果我可以订阅该事件,以及如何做它。
发布于 2017-11-29 01:52:30
这是因为NG2-智能表需要在其设置中修改模式值。
settings = {
actions: {
columnTitle: 'Actions'
},
mode: 'external',https://stackoverflow.com/questions/47536520
复制相似问题