当用户点击它时,我希望能够将一行切换到编辑模式
我曾尝试在 my.component.html 上使用事件userRowSelect:
<ng2-smart-table
class="class-content"
[settings]="settings"
[source]="source"
(deleteConfirm)="onDeleteConfirm($event)"
(editConfirm)="onSaveConfirm($event)"
(createConfirm)="onCreateConfirm($event)"
(rowSelect)="onRowSelect($event)"
(userRowSelect)="onUserRowSelect($event)"
>
</ng2-smart-table>
然后在 my.component.ts 中:
onUserRowSelect(e) {
console.log('onUserRowSelect', e);
}
没有成功