Last active
April 11, 2019 00:51
-
-
Save MakotoE/573eea408187b4441d66e91f03858afb to your computer and use it in GitHub Desktop.
Performs a basic Excel API call using plain JavaScript & Promises.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: createObjectURL method | |
description: Performs a basic Excel API call using plain JavaScript & Promises. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: |- | |
const link = document.getElementById('link'); | |
const blob = new Blob(["test"], { type: "application/octet-stream" }); | |
link.href = URL.createObjectURL(blob); | |
link.download = "name.txt"; | |
language: typescript | |
template: | |
content: <a id="link">Save file</a> | |
language: html | |
style: | |
content: '' | |
language: css | |
libraries: file-saver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment