jQuery DataTables Column Width 설정

  • helloworld
    (stdio.h)
  • helloworld's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
18 Sep 2016 23:33 - 18 Sep 2016 23:44 #1204 작성자: helloworld
helloworld 님의 글: jQuery DataTables Column Width 설정
$(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" } 
		]
	});
});
Time to create page: 0.057 seconds
Powered by Kunena Forum