Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

SpoonX/aurelia-datatable-export

Repository files navigation

Archived

It was fun while it lasted, but we have to stop maintaining these repositories. We haven't used these projects for quite some time and maintaining them is becoming harder to do.

You deserve better, and for that reason we've decided to archive some repositories, which includes this one.

Feel free to fork and alter the repositories, and go forth making awesome stuff.

Datatable export

Build Status Gitter

Datatable export for Aurelia. Works well with aurelia-datatable.

Uses

Aurelia-datatable-export needs following plugins installed and configured:

Documentation

The changelog provides you with information about important changes.

data

Binding to data gives the opportunity to use custom data that is not related to datatable.

Installation

Aureli-Cli

Run npm i aurelia-datatable-export --save from your project root.

Aurelia-datatable-export uses json2csv, so add following to the build.bundles.dependencies section of aurelia-project/aurelia.json:

"dependencies": [
  "json2csv",
  {
    "name": "aurelia-datatable-export",
    "path": "../node_modules/aurelia-datatable-export/dist/amd",
    "main": "aurelia-datatable-export",
    "resources": [
      "bootstrap/datatable-export.html"
    ]
  },
  // ...
],

Jspm

Run jspm i aurelia-datatable-export from your project root.

Aurelia-datatable-export uses json2csv, so add following to the bundles.dist.aurelia.includes section of build/bundles.js:

  "json2csv",
  "aurelia-datatable-export",
  "[aurelia-datatable-export/**/*.js]",
  "aurelia-datatable-export/**/*.html!text",

If the installation results in having forks, try resolving them by running:

jspm inspect --forks
jspm resolve --only registry:package-name@version

Webpack

Run npm i aurelia-datatable-export --save from your project root.

And add aurelia-datatable-export in the coreBundles.aurelia section of your webpack.config.js.

Typescript

Npm-based installations pick up the typings automatically. For Jspm-based installations, run typings i github:spoonx/aurelia-datatable-export or add "aurelia-datatable-export": "github:spoonx/aurelia-datatable-export", to your typings.json and run typings i.