Drag and drop in uihtml

조회 수: 2 (최근 30일)
Heorhii Koltsov
Heorhii Koltsov 2020년 6월 10일
답변: Rahul 2025년 6월 9일
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
Martin Höjer
Martin Höjer 2023년 1월 31일
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 2023년 6월 28일
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):

댓글을 달려면 로그인하십시오.

채택된 답변

Rahul
Rahul 2025년 6월 9일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by