jQuery DataTables Column Width 설정
조회 10,233 · 댓글 0
$(document).ready(function() {
$('#datas').DataTable();
});
아래와 같이 각 컬럼 별 설정이 가능합니다.
$(document).ready(function() {
$('#datas').DataTable({
"columns" : [
null,
{ "width" : "50px" },
null,
{ "width" : "50px" },
{ "width" : "20%" },
{ "width" : "30px" },
{ "width" : "30px" },
{ "width" : "30px" },
{ "width" : "30px" },
{ "width" : "30px" },
{ "width" : "30px" }
]
});
});로그인 후 답글을 남길 수 있습니다.