FileUpload

FileUpload

new FileUpload(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
groupSelectorString

Selector for file upload form group

buttonSelectorString

Selector for file upload button

listSelectorString

Selector for list of file names

labelChooseString

Label choose state

labelReplaceString

Label replace state

attachChangeListenerBoolean

Whether or not to bind change events on toggle

Classes

FileUpload

Methods

destroy()

Description:
  • Destroy component.

Source:

handleChange(e)

Source:
Parameters:
NameTypeDescription
eEvent

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {FileUpload}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of FileUpload.

Type
FileUpload