iT邦幫忙

1

Angular ngx-datatable checkbox 裡面的check打勾部分勾選部分

<ngx-datatable
style="width: 90%"
class="material"
[rows]="rows"
[columnMode]="'force'"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="'auto'"
[limit]="5"
[selected]="selected"
[selectionType]="'checkbox'"
(activate)="onActivate($event)"
(select)='onSelect($event)'>

要如何設定只能打勾一個? 還是沒辦法?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

1
小魚
iT邦大師 1 級 ‧ 2018-07-17 19:39:41

CheckBox基本上是獨立運作,
你要只能勾一個就只能在事件裡面處理了...

0
Homura
iT邦高手 1 級 ‧ 2018-07-18 13:39:53

selectionType改成radio

[selectionType]="'radio'"

我要發表回答

立即登入回答