Disable droppable area #659
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi All,
Is there any way to disable the droppable area? I am in situation under some circumstances I have to disable the drag and drop feature. There is a feature like "
_preventAndStop" but this is a protected method. Wondering how to access this?Regards,
Sadik
shared your code please
Scenario: If the user is not authorized to drag and drop, but do not wants to hide the div
-sadik
not aware of anything implemented in this module to achieve what you mentioned but you can style it with an invisible overlay to block the drop zone area.
If I put a invisible overlay on top of it, the user wouldn't be able to take any actions on the items already there within the div. :(
Work around, this might help someone
And a class in the html
[ngClass]="{'disabled':uploadDisabled}"-sadik
Same problem. Need dragable option.
+1
For a workaround, you can specifiy this command below, which doesn't accept any file types to be dragged in a box or to be selected via input and include them on the queue list, more like disabling the drag drop and selection of files.
this.uploader.setOptions({allowedMimeType: []});For me, i used it like when it already starts uploading files, i do not allow any additional files to be included in queue unless the 1st batch is finished:
I have found a workaround: