Hi,
I wanted to implement the drag and drop functionality in uihtml and connect it to the matlab app. The html page is valid and working but when its loaded to the uihtml control the drag and drop functionality is not working
Is it actually supported and if yes, do I miss any configuration?
I was using this file as an example
regards

3 Kommentare

Austin Decker
Austin Decker am 18 Feb. 2022
I attempted this as well. Could not get the 'dragover' event to work. Seems uifigure may lock out this action in some way. I've been able to get all other mouse action events to work however. Wish there was a section in uihtml doc that included all the limitations.
Martin Höjer
Martin Höjer am 31 Jan. 2023
I have the same issue. I can get "dragstart" and "dragend" event to fire but not "dragover" "dragenter" or "drop" that are eventlisteners for the "drop-zones".
Anton Kogios
Anton Kogios am 28 Jun. 2023
Did anyone figure out a solution to this problem?
I am new to HTML/JavaScript, but does anyone know if this changes anything (it's mentioned in the uihtml documentation):

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Rahul
Rahul am 9 Jun. 2025

0 Stimmen

I understand that you wish to implement a drag and drop functionality with 'uihtml'. However, according to the limitations mentioned in the documentation for 'uihtml', it mentions: "Content cannot overflow the bounds of the HTML UI component".
Additionally I have observed that while this functionality is not able to be implemented in MATLAB Desktop, however implementing it using MATLAB online is a workaround in this case.
The following MathWorks documentation can be referred:
Thanks.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019b

Gefragt:

am 10 Jun. 2020

Beantwortet:

am 9 Jun. 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by