| Package | Description |
|---|---|
| org.dominokit.domino.ui.upload |
| Modifier and Type | Method and Description |
|---|---|
FileItem |
FileItem.addBeforeUploadHandler(FileItem.BeforeUploadHandler beforeUploadHandler)
Adds a handler to be called before uploading the file
|
FileItem |
FileItem.addCancelHandler(FileItem.CancelHandler cancelHandler)
Adds a handler to be called when uploading the file is canceled
|
FileItem |
FileItem.addErrorHandler(FileItem.ErrorHandler errorHandler)
Adds a handler to be called when an error happens while uploading the file
|
FileItem |
FileItem.addProgressHandler(FileItem.ProgressHandler progressHandler)
Adds a handler to be called when file is uploading providing the progress
|
FileItem |
FileItem.addRemoveHandler(FileItem.RemoveFileHandler removeHandler)
Adds a handler to be called when removing the file
|
FileItem |
FileItem.addSuccessUploadHandler(FileItem.SuccessUploadHandler successUploadHandler)
Adds a handler to be called when the file is uploaded successfully
|
FileItem |
FileItem.cancel()
Cancels the upload request
|
static FileItem |
FileItem.create(elemental2.dom.File file,
UploadOptions options) |
FileItem |
FileItem.remove()
removes the element from the DOM tree
|
FileItem |
FileItem.setErrorUploadMessage(String errorMessage)
Sets the message to be shown when uploading file fails
|
FileItem |
FileItem.setSizeTitle(String sizeTitle)
The title of the file size
|
FileItem |
FileItem.setSuccessUploadMessage(String successMessage)
Sets the message to be shown when the file is uploaded
|
FileItem |
FileItem.setUrl(String url)
Sets the url of the server
|
| Modifier and Type | Method and Description |
|---|---|
List<FileItem> |
FileUpload.getAddedFileItems() |
| Modifier and Type | Method and Description |
|---|---|
void |
FileUpload.OnAddFileHandler.onAddFile(FileItem fileItem) |
Copyright © 2019–2022 Dominokit. All rights reserved.