/// import { ElementRef, Renderer, IterableDiffers } from "@angular/core"; import { IgControlBase } from "../igcontrolbase/igcontrolbase"; export declare class IgUploadComponent extends IgControlBase { constructor(el: ElementRef, renderer: Renderer, differs: IterableDiffers); /** * Return jquery object of fileupload container - html DOM element */ container(): void; /** * Returns the current widget element */ widget(): void; /** * Hide finished files */ clearAll(): void; /** * Append additional data field to formData(before submitting it to the server). Usually this function is used in the handler of the event onFormDataSubmit. If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the
that should be submitted to the server * * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server * @param field Data field that should be appended to the formData. The object has 2 properties - value and name. If the browser supports HTML5 the data field is appended to the formData object. Otherwise it is appended as input hidden field to the */ addDataField(formData: Object, field: Object): void; /** * Append additional data fields to formData(before submitting it to the server). Usually this function is used in the handler of the event onFormDataSubmit. If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server * * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server * @param fields Array of data fields that should be appended to the formData. Each data field is object with 2 properties - value and name. If the browser supports HTML5 these data fields are added to the formData. Otherwise each of these data field is appended as input hidden field to the */ addDataFields(formData: Object, fields: any[]): void; /** * Start uploading file as submitting form with the specified formNumber. * * @param formNumber id of the upload form */ startUpload(formNumber: number): void; /** * Cancel upload for the specified file id * formNumber - id of the file to be canceled * * @param formNumber id of the form which should be cancelled */ cancelUpload(formNumber: number): void; /** * Destroy the widget */ destroy(): void; /** * Returns the information about uploading files - all files uploaded/uploading/pending */ getFileInfoData(): Object; /** * Cancel all uploading and pending files */ cancelAll(): void; /** * Returns the information about the file by specified file identifier. It could be file which is uploading/uploaded or uploading is not started. If there isn"t file with the specified file id returns null * * @param fileIndex unique identifier of the file */ getFileInfo(fileIndex: number): Object; }