FileDownload

FileDownload

new FileDownload(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
translationToggleSelectorString

Selector for toggling translatoins section

translationContainerSelectorString

Selector for translations section container

attachClickListenerBoolean

Whether or not to bind click events on toggle

Classes

FileDownload

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickOnToggle(e)

Source:
Parameters:
NameTypeDescription
eEvent

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {FileDownload}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of FileDownload.

Type
FileDownload