5
JQuery DataTables TableTools 플러그인을 사용하고 있으며 PDF의 기본 파일 이름을 정의하고 있습니다. 그러나, 나는 ajax와 함께 datatables를 사용하고 있으며 날짜 범위 선택기가 있으므로 페이지가 새로 고쳐지지 않아 기준 변경시 새 기본 파일 이름을 제공 할 수 없습니다.DataTables 수정 TableTools 기본 PDF 내보내기 파일 이름 (런타임시)
datatables가 테이블 도구로 초기화 된 후 즉, 구성을 직접 수정하면 런타임시 기본 파일 이름을 어떻게 변경할 수 있는지 알고있는 사람이 있습니까?
"oTableTools": {
"sSwfPath": "js/DataTables/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sTitle": "Report Name",
"sPdfMessage": "Summary Info",
"sFileName": "<?php print('How do i use jquery to change this after the table has been initialized'); ?>.pdf",
"sPdfOrientation": "landscape"
},
"print"
]
}