I am trying to show upload dialog for a new image upload.
I have a HBox and I want to open the dialog on click.
Currently I have this part:
imageBox.addLayoutClickListener(e -> {
FileUploadDialog dialog = (FileUploadDialog) openWindow("fileUploadDialog", OpenType.DIALOG);
}
But I want to skip the whole dialog with upload button, I want to go directly to the file chooser.
I would like to open directly this dialog:
Is this possible somehow?
Thanks in advance,
Ivan