jsonファイルから入力するデータテーブルがあります。私の問題は、最後の列ヘッダー テキストが垂直方向に上に配置されることです (また、ヘッダー列の高さが 2 倍になっています)。
誰もがこれに対する解決策を持っていますか。
これは私のデータテーブルコードです。
$(document).ready(function() {
var oTable = $('#genericTable').dataTable( {
"bProcessing": true,
"sAjaxSource": "../jsonData/resources/json/" + key + ".json",
"sPaginationType" : "full_numbers",
"bJQueryUI" : true,
"bRetrieve" : true,
"bPaginate" : true,
"bSort" : true,
"aaSorting" : [[ 3, "desc" ]],
"iDisplayLength" : 50,
"bAutoWidth" : false,
"aoColumns": [
{ "sTitle": "Name" },
{ "sTitle": "Description" },
{ "sTitle": "Date" },
{ "sTitle": "Action" }
],
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
if(typeof aData[0] != 'string'){
$('td:eq(0)', nRow).html( '<a href="' + aData[0]['link'] +'" style="color:blue">' +
aData[0]['displayValue'] + '</a>');
}
$('td:eq(3)', nRow).html( '<a href="' + aData[3]['link'] +'" style="color:blue">' +
aData[3]['displayValue'] + '</a>');
}
}).columnFilter({ sPlaceHolder: "head:after",
aoColumns: [ { type: "text" },
{ type: "text" },
null
]
});
});
前もって感謝します!