FileDownload

FileDownload

new FileDownload(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
translationToggleSelector String

Selector for toggling translatoins section

translationContainerSelector String

Selector for translations section container

attachClickListener Boolean

Whether or not to bind click events on toggle

Classes

FileDownload

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickOnToggle(e)

Source:
Parameters:
Name Type Description
e Event

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {FileDownload}

Source:
Parameters:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of FileDownload.

Type
FileDownload