Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tableexport-xls-bold-headers

carlopantaleo11GPL-3.01.0.3

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

tableexport, excel, xls, js, jquery-plugin, ecosystem:jquery

readme

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.