Enable file DnD onto Matlab uifigure
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This single file implementation can set up a callback fired when files and/or folders are dropped onto a uifigure component.
In the callback, the full file and/or folder names are captured for user to decide the action. Ctrl and Shift key status during the drop event are also reported.
Example to drop file/folder into uilistbox:
DnD_uifigure(uilistbox(uifigure), @(o,dat)set(o,'Items',dat.names))
Cite As
Xiangrui Li (2026). uiFileDnD (https://github.com/xiangruili/uiFileDnD), GitHub. Retrieved .
General Information
- Version 2023.10.18 (3.2 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with R2020b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 2023.10.18 | Try to fix the crash issue |
||
| 2023.10.17 | See release notes for this release on GitHub: https://github.com/xiangruili/uiFileDnD/releases/tag/v2023.10.17
|
||
| 2023.04.14 | Move JS from help text to string, so it works for compiled app. Thx MattTheCuber |
||
| 2020.10.04 | add picture |
||
| 2020.10.03 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
