필터 지우기
필터 지우기

[Appdesigner-uihtml] Is Drag and Drop supported? or any HTML5 APIs?

조회 수: 6 (최근 30일)
Kelvin L
Kelvin L 2021년 7월 20일
답변: Samay Sagar 2024년 4월 26일
I have a static HTML site that I would like to display on my GUI created using app designer. This html takes in a user's file through drag and drop. I can render the html on a uihtml figure, but it does not respond to drag and drop DOM events.
Is there a way I can implement drag and drop in this instance? Does the MATLAB uihtml override the mouse over event so do I have to re-implement my javascript logic in appdesigner? Is there any performance impact from passing data from MATLAB to javascript and back again?

답변 (1개)

Samay Sagar
Samay Sagar 2024년 4월 26일
I have also faced a similar issue when using drag and drop with “uihtml” in MATLAB Desktop. As mentioned in the MathWorks documentation available here https://in.mathworks.com/help/releases/R2021a/matlab/ref/uihtml.html#mw_d8fc1e12-fa02-43b8-bfaa-db9dd0f2c8dd:~:text=in%20pixel%20units.-,Limitations,-You%20cannot%20link on MATLAB desktop certain HTML features such as web plugins and access to webcams or microphones are not supported. Dragging and dropping external files is also one of the limitations on MATLAB desktop. However, upon trying “drag and drop” on MATLAB online, I found that it was working as expected. I would recommend experimenting with this feature in MATLAB Online to see if it meets your project's requirements.

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by