The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
fix: reset hashCode
seed for cloned nodes and dynamic tables.
npm install [email protected]
fix: Excel (xlsx
, xlsm
, xlsb
, xls
) cell merge support #69
npm install [email protected]
Trailing new line is causing a new row in excel (xls
) to be created, when not using SheetJS/js-xlsx
.
fix: rowspan
/colspan
bug specific to XLSX format (introduced by the previous code cleanup commit).
npm install tableexport@next
ORnpm install [email protected]
v5.0.0-rc.7 new features:
ignoreCSS
and emptyCSS
values can now be configured with a custom CSS selector or an array of custom CSS selectors.// example
TableExport.prototype.ignoreCSS = '.tableexport-ignore' // default
TableExport.prototype.ignoreCSS = '.myIgnoredCells' // custom selector
TableExport.prototype.ignoreCSS = [ '.tableexport-ignore', '[data-hide]' ] // custom selector[]
the default selector values (
.tableexport-ignore
and.tableexport-empty
) remain unchanged.
TableExport.prototype
properties.
npm install [email protected]
fixes Rowspan and Colspan #27 with the exception of a few edge cases.
Updates to the rowspan
/colspan
algorithm:
rowspan
and colspan
parsing once in the initial RowColMap
build rather than at runtime for each DOM node with a rowspan
or colspan
attribute.handleRowSpan
function to track a pointer reference to the current rowspan
accumulator value.handleColSpan
function to track a pointer reference to the current colspan
accumulator value.isRowSpan
and isColSpan
helper methods on the RowColMap
class.
npm install [email protected]
v5.0.0-rc.4 new features:
xlsm
) and Excel Binary Workbook (xlsb
) file format support.error
handling and logging.formatConfig
-> enforceStrictRFC4180
boolean prototype property to the xls
, csv
, and txt
formats to dictate the use of js-xlsx
for parsing. (disabled by default for csv
and txt
due to Excel's discord with RFC4180).exporters
procedure cleanup/overhaul (200+ lines of redundant code removed).
npm install [email protected]
Updates to the rowspan
/colspan
algorithm:
handleColSpan
and handleRowSpan
functions when handling DOM elements with both a rowpan
and colspan
value.RowColMap
builder from the TableExport
context.
npm install [email protected]
v5.0.0-rc.2 new features:
Excel
default format from xls
to xlsx
v5.0.0-rc.1 new features:
RowColMap
helper class: a table preprocessing stage to collect metadata and prevent repetitive iterations for every filetype.
LocalStorage
helper class (removed from TableExport.prototype
).CONSTANTS
to TableExport.prototype
for convenient, centralized access to internal property values (as well as to prune out magic strings).rowspan
and colspan
(fixes Rowspan and Colspan
#27).getFileSize
utility method to quickly calculate the filesize of a file export.getBinaryData
to the more semantically correct getRawData
types
to typeConfig
xlsx
, xls
, csv
, and txt
TableExport.prototype
properties to be nested under the formatConfig
namespace.examples
.
npm install [email protected]