Class: DropZoneCollection

DropZoneCollection Class

Namespace

ITHit.WebDAV.Client.Upload
Instance of this class store drop zones and provide methods to creating and removing them

Members

Methods

AddById(sElementId) → {ITHit.WebDAV.Client.Upload.Controls.DropZone}

AddById
Bind HTML element as drop zone.
Name Type Description
sElementId string Id of HTML element.
Returns:
ITHit.WebDAV.Client.Upload.Controls.DropZone Created drop zone.
Example
<!DOCTYPE html>
 <html>
 <head>
     <script type="text/javascript">
             var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
             oUploader.DropZones.AddById('ithit-dropzone');
     </script>
 </head>
 <body
     <div id="ithit-dropzone">
         Drop file to upload<
     </div>
 </body>
 </html>

GetById(sElementId) → {ITHit.WebDAV.Client.Upload.Controls.DropZone|undefined}

GetById
Get drop zone by Id.
Name Type Description
sElementId string Id of HTML element.
Returns:
ITHit.WebDAV.Client.Upload.Controls.DropZone | undefined Found drop zone or undefined.

RemoveById(sElementId)

RemoveById
Remove HTML element from drop zone Controls by id.
Name Type Description
sElementId string Id of HTML element.