Skip to content

Creates a file to download with the given extension and data

License

Notifications You must be signed in to change notification settings

EOSBlox/blox-backup

Repository files navigation

<blox-backup>

Creates a file to download with the given extension and data

Install the Polymer-CLI

First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.

Install blox-backup

$ npm install blox-backup

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-backup';

Basic Use

<blox-backup
    filename="myfile"
    suffix="csv"
    data="this, is , in, the, file,">
</blox-backup>

Javascript Generate Number

<blox-backup id="bloxBackup"></blox-backup>
<script>
    this.$.bloxBackup.backup('myfile', 'csv', 'this, is , in, the, file')
    .then(() => {
        // Do Something
    })
    .catch((err) => {
        // Do Something
    })
</script>

About

Creates a file to download with the given extension and data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published