https://github.com/kayalshri/tableExport.jquery.plugin
"table2JSON", "table2XML", "table2PNG","table2CSV","table2Excel","table2Word","table2Powerpoint","table2txt","table2PDF"
https://github.com/kayalshri/tableExport.jquery.plugin
Last synced: 5 months ago
JSON representation
"table2JSON", "table2XML", "table2PNG","table2CSV","table2Excel","table2Word","table2Powerpoint","table2txt","table2PDF"
- Host: GitHub
- URL: https://github.com/kayalshri/tableExport.jquery.plugin
- Owner: kayalshri
- Created: 2014-03-25T06:41:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T11:04:43.000Z (about 4 years ago)
- Last Synced: 2024-11-21T04:34:04.910Z (about 1 year ago)
- Language: JavaScript
- Size: 1.46 MB
- Stars: 1,255
- Watchers: 102
- Forks: 582
- Open Issues: 91
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-frontend - tableExport - 导出HTML Table为 Excel、PDF 等
- awesome-front-end - tableExport - 导出HTML Table为 Excel、PDF 等
README
tableExport.jquery.plugin
=========================
Export HTML Table to
- JSON
- XML
- PNG
- CSV
- TXT
- SQL
- MS-Word
- Ms-Excel
- Ms-Powerpoint
- PDF
Installation
============
jquery Plugin
<script type="text/javascript" src="tableExport.js">
<script type="text/javascript" src="jquery.base64.js">
PNG Export
==========
<script type="text/javascript" src="html2canvas.js">
PDF Export
==========
<script type="text/javascript" src="jspdf/libs/sprintf.js">
<script type="text/javascript" src="jspdf/jspdf.js">
<script type="text/javascript" src="jspdf/libs/base64.js">
Usage
======
onClick ="$('#tableID').tableExport({type:'pdf',escape:'false'});"
Options
=======
separator: ','
ignoreColumn: [2,3],
tableName:'yourTableName'
type:'csv'
pdfFontSize:14
pdfLeftMargin:20
escape:'true'
htmlContent:'false'
consoleLog:'false'