File

files/src/file_download.ts

Description

This service is supposed to be declared as provider for a container with content style 'filedownload' and then injected into its constructor as a Self dependency.

Index

Properties
Methods

Constructor

constructor(container: Container, session: BlueriqSession, downloadService: DownloadService, querying: BlueriqQuerying)
Parameters :
Name Type Optional
container Container No
session BlueriqSession No
downloadService DownloadService No
querying BlueriqQuerying No

Methods

getDownloadInfo
getDownloadInfo()

Downloads a file based on the configuration of this container. It will first check whether the current user is authorized to download the file. If that is not the case, the Runtime is notified which may cause flowing to occur, depending on the model, and the subscriber receives an error event. If the user is authorized to download the file, the subscriber receives an event of type AuthorizedDownload that contains the URL to follow.

ngOnDestroy
ngOnDestroy()
Returns : void

Properties

downloadButton
downloadButton: Button
Type : Button
Decorators :
@BlueriqChild(Button, '#downloadButton')

Accesses the download button, containing the button text and optionally presentation styles that should be used for the download button.

result-matching ""

    No results matching ""