Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-DragDropElements

On drag event displays modal inside given element with text Drop & drop files here. On moving dragged files away from element or dropping dragged files modal will hide. Also on drop event exec function is executed.

Configuration

  • exec {String} - the component executes this method if the files are dropped
  • class {String} - toggles class if the drag over is emitted (default: ui-dragdropelement)
  • text {String} - text to display in the middle of element (default: Drag & drop files here)

Example

<div data-jc="dragdropelement__null__exec:console.log;"></div>

Author