tableexport-xls-bold-headers

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i tableexport-xls-bold-headers

Weekly Downloads

4

Version

1.0.3

License

GPL-3.0

Unpacked Size

7.53 kB

Total Files

4

Last publish

Collaborators

  • carlopantaleo