- However, uialert, uiconfirm, and uiprogressdlg are supported.
Add a confirm exit message (like uiconfirm) for a WebApp
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Shreedhar Savant Todkar
el 13 de Jul. de 2021
Comentada: Shreedhar Savant Todkar
el 16 de Jul. de 2021
I am migrating one of my Standalone apps to a Matlab Webapp and indeed there are a lot of things to be removed, changed and modified as they do not work for a Web-application (listed here). I would like to however include one feature that will demand confirmation from the user when he tries to close the window.
Usually, for a standalone app, this is what I do (my CloseRequest function):
function figure1CloseRequest(app, event)
anss = uiconfirm(app.figure1, 'Do you wish to quit?', 'Confirm Exit', 'Options',{'Yes','No','Cancel'}, ...
'DefaultOption',3,'CancelOption',3, 'Icon', 'question');
switch anss
case 'Yes'
closereq();
otherwise
return;
end
end
However, this feature does not work in a Web-app. Is there a workaround to add something like this in a Web-app?
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre MATLAB Web App Server en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!