我有播放和开始自定义按钮。当我单击播放图标时,停止图标应该可见,播放图标应该隐藏在我单击的行中。
<ng2-smart-table [settings]="settings" [source]="source" (userRowSelect)="AdapInformation($event)" (deleteConfirm)="onDeleteAdap($event)">
settings = {
actions: {
columnTitle: 'Action',
position: 'right',
add: false,
edit:false,
custom: [
{ name: 'startAdaptor', title: '<i class="startAdded nb-play nbPlayIcon ng2-smart-actions"></i>' },
{ name: 'stopAdaptor', title: '<i class="stopAdded nb-square ng2-smart-actions"></i>' },
{ name: 'editAdaptor', title: '<i class="nb-edit nbeditStyle ng2-smart-actions"></i>' }
],
},
.....
}
如何解决?