如何在Angular 2 ng2-smart-table中添加复选框?

时间:2017-04-26 19:33:25

标签: angular

我正在写

checkbox: {
      title: 'Re-Assiiiiign',
      type: 'html',
      valuePrepareFunction: (value) => { return this._sanitizer.bypassSecurityTrustHtml(this.input); },

      filter: false
 },

public input: string = '<input type="checkbox"></input>';
constructor(private _hrdashboardservice: HRDashboardService, private _sanitizer: DomSanitizer){
}

但无法点击复选框。有人知道在ng2-smart-table中解决添加复选框的其他方法吗?

1 个答案:

答案 0 :(得分:1)

尝试添加表格模型

selectMode: 'multi'

Example ng2-smart-table