Filter löschen
Filter löschen

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

9 Ansichten (letzte 30 Tage)
Kelvin L
Kelvin L am 20 Jul. 2021
Beantwortet: Samay Sagar am 26 Apr. 2024
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?

Antworten (1)

Samay Sagar
Samay Sagar am 26 Apr. 2024
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.

Kategorien

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

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by