🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Just another jQuery based Table To Excel converter which exports your html table to an XLS file with bold column headers.

excel table-export

Documentation

TableExport xls with Bold Headers jQuery Plugin

npm version npm downloads

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.


You May Also Like