-
I'm trying to implement a drag n drop zone for the FileEdit component so that the user can:
I cannot work out how to integrate the FileEdit component with JS to handle the drop and paste events. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I didn't try it. But you can maybe assign the ID to the FileEdit component and then call the custom JavaScript code by using that ID to handle drag-and-drop and trigger the To assign the ID
|
Beta Was this translation helpful? Give feedback.
I didn't try it. But you can maybe assign the ID to the FileEdit component and then call the custom JavaScript code by using that ID to handle drag-and-drop and trigger the
onchange
event. Example here https://www.meziantou.net/upload-files-with-drag-drop-or-paste-from-clipboard-in-blazor.htmTo assign the ID