Migrating from 4.x to 5.x?
Changelog
Major Features
Cell merge support, using
rowspanandcolspanhtml attributes on table. v5.0.0-rc.1, v5.0.0-rc.3, v5.0.0-rc.6, v5.0.0-rc.8, v5.0.0-rc.9
Properties
xlsxhas replacedxlsas the default spreadsheet format. v5.0.0-rc.2
// (String[]), filetype(s) for the export, (default: ['xlsx', 'csv', 'txt'])
formats: ['xlsx', 'csv', 'txt'],Two(2) new export formats have been added:
xlsmandxlsb. v5.0.0-rc.4Both
csvandxlsformats now have a theenforceStrictRFC4180property set tofalse. v5.0.0-rc.4
Methods
getFileSizeutility method to quickly calculate the filesize of a file export. v5.0.0-rc.1getBinaryDatarenamed to a more semantically correctgetRawData
Settings
ignoreCSScan now accept either aselector(e.g.'.tableexport-ignore') orselector[](e.g.['.tableexport-ignore', '#ignore']). v5.0.0-rc.7
/**
* CSS selector or selector[] to exclude/remove cells from the exported file(s).
* @type {selector|selector[]}
* @memberof TableExport.prototype
*/
ignoreCSS: ".tableexport-ignore";emptyCSScan now accept either aselector(e.g.'.tableexport-empty') orselector[](e.g.['.tableexport-empty', '#empty']). v5.0.0-rc.7
/**
* CSS selector or selector[] to replace cells with an empty string in the exported file(s).
* @type {selector|selector[]}
* @memberof TableExport.prototype
*/
emptyCSS: ".tableexport-empty";defaultCaptionClassclass is now configurable rather than statically set to the.tableexport-captionclass. v5.0.0-rc.10
/**
* Class applied to each table caption.
* @memberof TableExport.prototype
*/
defaultCaptionClass: "tableexport-caption";storageKeyattribute is now configurable rather than statically set to thetableexport-idattribute. v5.0.0-rc.10
/**
* Attribute applied to each export button element used to reference a Storage key.
* @memberof TableExport.prototype
*/
storageKey: "tableexport-id";defaultNamespacestring is now configurable rather than statically set to thete-string. v5.0.0-rc.10
/**
* Namespace (i.e. prefix) applied to each table UUID and Storage key.
* @memberof TableExport.prototype
*/
defaultNamespace: "tableexport-";typesrenamed totypeConfig. v5.0.0-rc.1xlsx,xls,csv, andtxtprototype properties moved to nested under theformatConfignamespace. v5.0.0-rc.1
Miscellaneous
Improved error logging to the console, including more verbose error descriptions. v5.0.0-rc.4
Serialized export data is now stored in Session Storage rather than Local Storage to prevent undesirable persistence. v5.0.0-rc.10
Implement caching by maintaining unique reference to tables by
id. ThetableKeyattribute is now used to uniquely identify table elements and hold either the table'sidor a UUID generated from thedefaultNamespaceand a unique internal counter. v5.0.0-rc.10, v5.0.0-rc.11
Last updated
Was this helpful?