1.0.0 • Published 7 years ago
blox-backup v1.0.0
\<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-backupViewing Your Element
$ polymer serveRunning Tests
$ polymer testImport
$ 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>1.0.0
7 years ago