For File Upload widgets, all functions in Common_Functions_AllWidgets
are available, except for the following:
getTooltip
setTooltip
setValue
Methods
# inner deleteSelected()
Deletes all selected files.
Note that this method does not work for File Upload widgets inside an array.
# inner deselectFile(name)
Deselects a file by its name.
Note that this method does not work for File Upload widgets inside an array.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the file |
# inner deselectFileId(id)
Deselects a file by its ID.
Note that this method does not work for File Upload widgets inside an array.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Identifier of the file |
# inner downloadSelected()
Downloads all selected files.
Note that this method does not work for File Upload widgets inside an array.
# inner getBrowseButton() → {SVGElement}
Returns the element corresponding to the Upload icon.
SVGElement
# inner getUploadedCount() → {number}
Returns the number of files that have been uploaded,
or
-1
if inside an array.
number
# inner refresh()
Refreshes the uploaded files list.
Note that this method does not work for File Upload widgets inside an array.
# inner selectFile(name)
Selects a file by its name.
Note that this method does not work for File Upload widgets inside an array.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the file |
# inner selectFileId(id)
Selects a file by its ID.
Note that this method does not work for File Upload widgets inside an array.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Identifier of the file |