A dialog which allows user to upload files

The settings for the dialog

The dialog's title, if missing a generic title will be used

The type of files allowed

Text describing which files to upload - a generic message will be shown if absent

A function which accepts a list of files and validates them - it should return an object with, files- a list of accepted files, msg - a string explaining why files were invalid. If absent all files will be accepted

A function which accepts the files to be uplaoded and returns an object containing any data to send to the server

The url for the upload

Hierarchy (View Summary)

Constructors

Properties

_closed: boolean = false
buttons: {}
columns: undefined | any[]
config: {
    buttons?: object[];
    columns?: any;
    doc?: any;
    footer?: boolean;
    height?: any;
    maxHeight?: any;
    position?: integer[];
    title?: string;
    width?: any;
}
dialog: HTMLDivElement
fileDiv: undefined | HTMLDivElement
fileInput: HTMLInputElement
files: any
footer: undefined | HTMLDivElement
header: HTMLDivElement
infoDiv: undefined | HTMLDivElement
observable: { container: any }
onfinished: any
onupload: any
outer: HTMLDivElement
progressDiv: undefined | HTMLProgressElement
url: any
validate: any
experiment: { [k: string]: unknown }

Methods

  • This method should be overridden if the layout needs updating on resize

    Parameters

    • x: integer

      the new width of the dialog

    • y: integer

      the new height of the dialog

    Returns void