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

attachClickListener Boolean

Whether or not to bind click events on toggle

Classes

FileDownload

Methods

alignTranslationActions()

Description:
  • Adjusts translation item padding to keep actions aligned with the footer when the list is tall enough to show a scrollbar.

Source:

closeTranslation()

Description:
  • Close the translation dropdown.

Source:

destroy()

Description:
  • Destroy component.

Source:

handleClickOnToggle(e)

Source:
Parameters:
Name Type Description
e Event

handleKeyboard(e)

Description:
  • Handles keyboard events.

Source:
Parameters:
Name Type Description
e Event

init()

Description:
  • Initialise component.

Source:

openTranslation()

Description:
  • Open the translation dropdown.

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