Class: InputCollection

InputCollection Class

Namespace

ITHit.WebDAV.Client.Upload
List of upload inputs. Contains items of ITHit.WebDAV.Client.Upload.Controls.Input type.

Members

Methods

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

AddById
Bind HTML element as input.
Name Type Description
sElementId string Id of HTML element.
Returns:
ITHit.WebDAV.Client.Upload.Controls.Input Created input object.
Example
<!DOCTYPE html>
 <html>
 <head>
     <script type="text/javascript">
             var oUploader = new ITHit.WebDAV.Client.Upload.Uploader();
             oUploader.Inputs.AddById('ithit-input');
     </script>
 </head>
 <body
     <input id="ithit-input" type="file">
 </body>
 </html>

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

GetById
Get input object by Id.
Name Type Description
sElementId string Id of HTML element.
Returns:
ITHit.WebDAV.Client.Upload.Controls.Input | undefined Founded input or undefined.

RemoveById(sElementId)

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