실제로는 sDom 옵션으로 약간 재생해야합니다. 문서에서 발췌 :
This initialisation variable allows you to specify exactly where in the DOM you want DataTables to inject the various controls it adds to the page (for example you might want the pagination controls at the top of the table). DIV elements (with or without a custom class) can also be added to aid styling. The follow syntax is used:
The following options are allowed:
'l' - Length changing
'f' - Filtering input
't' - The table!
'i' - Information
'p' - Pagination
'r' - pRocessing
The following constants are allowed:
'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')
'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')
The following syntax is expected:
'<' and '>' - div elements
'<"class" and '>' - div with a class
'<"#id" and '>' - div with an ID
Examples:
'<"wrapper"flipt>', '<lf<t>ip>'
그래서 예를 들어 당신이 경우에 (난 당신이 < "H"공격대 찾기> t < "F"IP>는 길이 변화가, 필터 및 JQuery와 UI를 사용한다고 가정 " 처리 중 ... "(아약스가 활성화 된 경우) 헤더에 테이블이 있고, 바닥 글에 정보와 페이지 매김이 있습니다. 원하는 경우 한 번 이상 문자를 사용할 수 있으므로 정보를 넣을 수 있습니다 두 번 또는 세 번 당신이 원하는 경우
편집을 - 당신이 당신의 테이블의 TFOOT를 추가하고 싶은 말은 당신의 코멘트에이 경우 당신은 수동으로 추가 할 수 있습니다..
$(document).ready(function() {
$('#usersPageList').dataTable({
"sDom": 'rti<"pagination"p>',//add i here this is the number of records
"iDisplayLength": 1,
"sPaginationType": "full_numbers",
});
var info = $('.dataTables_info')
$('tfoot').append(info);
});
나를 도울 수 있을지 모르니 'sinfo'에 대해 알아보십시오. –
내가 찾고있는 주요 부분은 총 x 행 x 개를 표시하는 것입니다. –