Web Component: j-DragDropFiles


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-DragDropFiles

Configuration:

  • exec {String} - the component executes this method if the files are dropped
  • class {String} - toggles class if the drag over is emitted
  • click {Boolean} - causes open file dialog when the user click on the element (default: true)
  • accept {String} - change accept attribute, e.g to only accept pdfs set to application/pdf (default: */*)

Author