Module: alfresco/upload/AlfFileDrop

alfresco/upload/AlfFileDrop

This module is provided for test purposes. It creates a simple drag-and-drop file upload target. PLEASE NOTE: The target node is hard-coded and will need to be updated for each development environment.
Author:
  • Dave Draper
License:
Source:

Mixes In

Members

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/Logo.css"}]
Source:

destinationNodeRef :string

The nodeRef to upload to.
Type:
  • string
Default Value:
  • null
Source:

templateString :string

The HTML template to use for the widget.
Type:
  • string
Source:

Methods

onDndDragEnter()

Source:

onDndDragOver()

Source:

onDndDrop()

Source:
Fires:

postCreate()

This controls whether or not the image is rendered with the img element or the div in the template. The default it to use the div because it is controlled via CSS which allows for finer control over the dimensions of the displayed logo. When using the img element the dimensions will be those of the supplied image.
Source: