1. 程式人生 > >tabulator預設選中,設定點選當前選中項不取消選擇

tabulator預設選中,設定點選當前選中項不取消選擇

tabulator預設選中,設定點選當前選中項不取消選擇

$("#table").tabulator({
		height:"92%",
		layout:"fitColumns",
		columnVertAlign:"bottom",
		tooltips:true,
		selectable:1,//預設只能選中一行
		resizableColumns:false,
		movableColumns:false,
		columns:[
		{title:"序號",field:"id",width:50,formatter:"rownum",align:"center"
,frozen:false,headerSort:false}, {title:"名稱", field:"name", sorter:"string",align:"center",editor:false,headerSort:false}, ], rowClick:function(e, row){ row.select();//設定選中項再次點選後不取消 _curRow = row; }, });