intelogie/table-export

There is no license information available for the latest version (dev-master) of this package.

table export plugin

Installs: 410

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 582

Language:JavaScript

dev-master 2015-10-09 02:14 UTC

This package is auto-updated.

Last update: 2024-11-29 05:14:54 UTC


README

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'