TableExport Versions Save

The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.

v5.0.0-rc.10

6 years ago

fix: reset hashCode seed for cloned nodes and dynamic tables.

Start using today!

npm install [email protected]

v5.0.0-rc.9

6 years ago

fix: Excel (xlsx, xlsm, xlsb, xls) cell merge support #69

Start using today!

npm install [email protected]

v4.0.11

6 years ago

fix #70:

Trailing new line is causing a new row in excel (xls) to be created, when not using SheetJS/js-xlsx.

v5.0.0-rc.8

6 years ago

fix: rowspan/colspan bug specific to XLSX format (introduced by the previous code cleanup commit).

Start using today!

npm install tableexport@next OR npm install [email protected]

v5.0.0-rc.7

6 years ago

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.

  • General code cleanup: replace "magic strings" with configurable TableExport.prototype properties.

Start using today!

npm install [email protected]

v5.0.0-rc.6

6 years ago

fixes Rowspan and Colspan #27 with the exception of a few edge cases.

Updates to the rowspan/colspan algorithm:

  • Handle rowspan and colspan parsing once in the initial RowColMap build rather than at runtime for each DOM node with a rowspan or colspan attribute.
  • Reengineer the handleRowSpan function to track a pointer reference to the current rowspan accumulator value.
  • Reengineer the handleColSpan function to track a pointer reference to the current colspan accumulator value.
  • Create isRowSpan and isColSpan helper methods on the RowColMap class.

Start using today!

npm install [email protected]

v5.0.0-rc.4

6 years ago

v5.0.0-rc.4 new features:

  • Added Excel Macro-Enabled Workbook (xlsm) and Excel Binary Workbook (xlsb) file format support.
  • Improved error handling and logging.
  • Added 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).
  • Significant exporters procedure cleanup/overhaul (200+ lines of redundant code removed).

Start using today!

npm install [email protected]

v5.0.0-rc.3

6 years ago

Updates to the rowspan/colspan algorithm:

  • Execution logic reordering inside thehandleColSpan and handleRowSpan functions when handling DOM elements with both a rowpan and colspan value.
  • Terminating condition optimization to eliminate redundant iteration.
  • Single instantiation of theRowColMap builder from the TableExport context.

Start using today!

npm install [email protected]

v5.0.0-rc.2

6 years ago

v5.0.0-rc.2 new features:

  • Change Excel default format from xls to xlsx

v5.0.0-rc.1

6 years ago

v5.0.0-rc.1 new features:

  • Add new RowColMap helper class: a table preprocessing stage to collect metadata and prevent repetitive iterations for every filetype.
  • Restructure the LocalStorage helper class (removed from TableExport.prototype).
  • Add CONSTANTS to TableExport.prototype for convenient, centralized access to internal property values (as well as to prune out magic strings).
  • Rewrite the rowspan/colspan algorithm to be more precise when handling complex assortments of rowspan and colspan (fixes Rowspan and Colspan #27).
  • Added getFileSize utility method to quickly calculate the filesize of a file export.
  • Rename getBinaryData to the more semantically correct getRawData
  • Rename types to typeConfig
  • Move xlsx, xls, csv, and txt TableExport.prototype properties to be nested under the formatConfig namespace.
  • Added more examples.

npm install [email protected]