49 lines
967 B
Markdown
49 lines
967 B
Markdown
tableExport.jquery.plugin
|
|
=========================
|
|
|
|
<h3>Export HTML Table to</h3>
|
|
<ul>
|
|
<li> JSON
|
|
<li> XML
|
|
<li> PNG
|
|
<li> CSV
|
|
<li> TXT
|
|
<li> SQL
|
|
<li> MS-Word
|
|
<li> Ms-Excel
|
|
<li> Ms-Powerpoint
|
|
<li> PDF
|
|
</ul>
|
|
|
|
Installation
|
|
============
|
|
jquery Plugin<BR>
|
|
<script type="text/javascript" src="tableExport.js"><BR>
|
|
<script type="text/javascript" src="jquery.base64.js"><BR>
|
|
<BR>
|
|
PNG Export
|
|
==========
|
|
<script type="text/javascript" src="html2canvas.js">
|
|
|
|
PDF Export
|
|
==========
|
|
<script type="text/javascript" src="jspdf/libs/sprintf.js"><BR>
|
|
<script type="text/javascript" src="jspdf/jspdf.js"><BR>
|
|
<script type="text/javascript" src="jspdf/libs/base64.js"><BR>
|
|
|
|
Usage
|
|
======
|
|
onClick ="$('#tableID').tableExport({type:'pdf',escape:'false'});"<BR>
|
|
|
|
Options
|
|
=======
|
|
separator: ','<BR>
|
|
ignoreColumn: [2,3],<BR>
|
|
tableName:'yourTableName'<BR>
|
|
type:'csv'<BR>
|
|
pdfFontSize:14<BR>
|
|
pdfLeftMargin:20<BR>
|
|
escape:'true'<BR>
|
|
htmlContent:'false'<BR>
|
|
consoleLog:'false' <BR>
|