3.2.1 • Published 3 years ago

ember-html-table-to-excel v3.2.1

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

ember-html-table-to-excel

npm version downloads Build Status Ember Observer Score Dependency Status devDependency Status Code Climate

ember-html-table-to-excel is an addon that converts html tables to Excel documents in your Ember.js application. ember-cli-data-export-with-style is used in background.

Installation

cd your-project-directory
ember install ember-html-table-to-excel

After installing ember-cli-data-export-with-style dependency, you need to import following 4 javascript files directly from the imported addon such as:

  included: function(app) {
    this._super.included(app);
    app.import('node_modules/ember-cli-data-export-with-style/vendor/Blob.js');
    app.import('node_modules/ember-cli-data-export-with-style/vendor/FileSaver.js');
    app.import('node_modules/ember-cli-data-export-with-style/vendor/jszip.min.js');
    app.import('node_modules/ember-cli-data-export-with-style/vendor/xlsx.core.min.js');
  }

Usage

You can use as ember-html-table-to-excel-button component with tableId (and optional fileName, sheetName and headerRows (array)) parameters.

{{#ember-html-table-to-excel-button
  tableId="my-custom-html-table-id"
  fileName=fileName
  sheetName=sheetName
  headerRows=headerRows
}}
  Export to Excel
{{/ember-html-table-to-excel-button}}

Checkout live examples at ember-html-table-to-excel demo page

License

This project is licensed under the MIT License.

3.2.1

3 years ago

3.2.0

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

4 years ago

3.0.2

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago