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;
    	},
	});

猜你喜欢

转载自blog.csdn.net/gongfanfei/article/details/84431184
今日推荐