DataFormsJS v5.12.0 Release Notes
Release Date: 2022-02-16 // about 2 years ago-
- ➕ Add Excel Export functionality
- Web Component:
~/js/web-components/export-to-excel-service.js
- https://github.com/dataformsjs/dataformsjs/blob/master/js/web-components/export-to-excel-service.js
- Framework Plugin:
~/js/plugins/exportToExcel.js
- https://github.com/dataformsjs/dataformsjs/blob/master/js/plugins/exportToExcel.js
- Both Web Component and Framework Plugin have the same behavior
- Exports happen directly in the browser through JavaScript and no server-side calls are made which makes the export/download appear almost instantly to the user.
- The script uses the external library ExcelJS and the first time the user exports an Excel file this service will download ExcelJS from a CDN. The generated Excel file contains a fixed header row using a gray and bold style and a filter set. The width of columns is based on the data. ExcelJS has many formatting options so if you need something similar or a custom version of this script then this file provides a good starting point for custom Excel Development.
- https://github.com/exceljs/exceljs/
- ⚡️ Update CSV Export to export only visible rows by default
- A new HTML attribute
[data-export-all]
was added to always export all rows regardless of filter.
- A new HTML attribute
- ➕ Add and updated Examples for this:
- Log Demos
- https://dataformsjs.com/examples/log-table-vue.htm#/10
- And all other Log demos
- New Export Table Demo - Web Components
- https://dataformsjs.com/examples/export-table-web.htm
~/examples/export-table-web.htm
- https://github.com/dataformsjs/dataformsjs/blob/master/examples/export-table-web.htm
- New Export Table Demo - Framework
- https://dataformsjs.com/examples/export-table-js.htm
~/examples/export-table-js.htm
- https://github.com/dataformsjs/dataformsjs/blob/master/examples/export-table-js.htm
- ⚡️ Updated Framework
dataBind
plugin to bind globalwindow.*
variables for a basic webpage if not using SPA - ⚡️ Updated Framework Control
data-table
to not show an error when an empty table is displayed withoutdata-bind
- ➕ Add Excel Export functionality