Caplin Trader 4.8.0

Class: module:caplin/dom/FileDownloaderTarget

module:caplin/dom/FileDownloaderTarget

Constructor

new module:caplin/dom/FileDownloaderTarget(targetName)

A target for the FileDownloader to post its download request to.
Parameters:
Name Type Description
targetName String The name of the target element to be created.

Methods

downloadRequested()

Notifies the target that a download has been requested. This should be called after submitting any forms using this object as the target.

onDownloadFailed()

This is called when a download fails.

onDownloadPassed()

This is called when a download succeeds.

removeFileDownloader()

Removes the file downloader.