1.0.3 • Published 6 years ago

tableexport-xls-bold-headers v1.0.3

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
6 years ago

TableExport xls with Bold Headers jQuery Plugin

A jQuery plugin which generates a basic .xls file with bold headers from a HTML table.

Install

  1. npm install tableexport-xls-bold-headers or just download tableexport-xls-bold-headers.js from this repository.
  2. Include tableexport-xls-bold-headers.js in your HTML files.

Usage

Let your HTML table be like:

<table id="myTable">
    <thead>
        ...
    </thead>
    <tbody>
        ...
    </tbody>
</table>

Call:

$('#myTable').tableExport({
    type: 'excel',
    escape: 'false',
    filename: 'myExport.xls'
});

to generate and download the Excel file 'myExport.xls'

Credits

Original code by Shreedhar Bhat from this StackOverflow answer, with some small modifications by Carlo Pantaleo.