我有一个 jquery 数据表,其中一些列是可搜索的
var oTable = $('#genericTable').dataTable( {
"bProcessing": true,
"sAjaxSource": '<%=jsonPath%>' + key + ".json",
"sPaginationType" : "full_numbers",
"bJQueryUI" : true,
"bRetrieve" : true,
"bPaginate" : true,
"bSort" : true,
"aaSorting" : [[ 2, "desc" ]],
"iDisplayLength" : 50,
"bAutoWidth" : false,
"aoColumns": [
{ "sTitle": "Name", sWidth: '200px' },
{ "sTitle": "Description", sWidth: '360px' },
{ "sTitle": "Date", sWidth: '70px', "sType": 'date-uk' },
{ "sTitle": "Action", sWidth: '60px', "bSortable": false }
],
}).columnFilter({ sPlaceHolder: "head:after",
aoColumns: [ { type: "text" },
{ type: "text" },
null,
null
]
});
} );
});
可搜索的列(文本框显示在标题中以进行搜索)在文本框右侧没有向上箭头图标,而其他列标题具有此排序图标
我可以知道在列标题中的文本框旁边显示排序图标的解决方案是什么?