Caplin Trader 4.0.3

Class: module:caplin/dom/FileDownloader

module:caplin/dom/FileDownloader

Constructor

new module:caplin/dom/FileDownloader()

The FileDownloader allows you to download files from a given URL.

Methods

downloadFile(url, fields)

Downloads a file from the given URL. If there is an error trying to download the file an alert is shown.
Parameters:
Name Type Description
url String The URL to download the file from.
fields Map Any additional parameters that should be appended to the download URL.