iT邦幫忙

0

已刪文30

已刪文30
已刪文30
froce iT邦大師 1 級 ‧ 2023-07-20 14:08:03 檢舉
render: function (data, type, row) {
return '<div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input" id="customSwitch1"><label class="custom-control-label" for="customSwitch1">Toggle this switch element</label></div>' ;

那個row應該就是讓你得到目前的資料項次的...
你把整個寫死了當然都會得到customSwitch1
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答