on 2023 Mar 27 8:28 AM
Hello,
The uploader has an aggregation that allows you custom define your uploader (sap.m.upload.UploadSet), which has an aggregation that lets you define drag and drop config (sap.ui.core.dnd.DragDropBase). There is a property "enabled" there, I guess you could try that?
In any case, remember you can always hide it using CSS.
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha,
Try this,
this.getView().byId("UploadSet").addDelegate({
ondragenter: function (oEvent) {
oEvent.stopPropagation()
},
ondragover: function (oEvent) {
oEvent.stopPropagation()
},
ondrop: function (oEvent) {
oEvent.stopPropagation()
}
}, true);
Regards,
Shubham C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha,
Did you already check the samples in the SDK? You can see both the UI and the code behind it there. There are a couple for the sap.m.UploadSet which don't seem to have this drag & drop area, so this should help you further.
https://sapui5.hana.ondemand.com/#/entity/sap.m.upload.UploadSet/sample/sap.m.sample.UploadSet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.