I want to close an UI5 app by pushing the navigation button. Is this possible ?
Btw: How can I close the app by not closing the tab?
Thanks
I want to close an UI5 app by pushing the navigation button. Is this possible ?
Btw: How can I close the app by not closing the tab?
Thanks
Because the app is in fact a "simple" web page, the concept of closing it is somewhat loose. Some ideas that you could try, depending on what you want to achieve:
window.open("about:blank", "_self");
window.home();
(see Sending user to their browser's Home Page using Javascript)window.go(steps)
to go forward / backward in the browser history by a number of steps (negative indicates that you are going backwards). It might be tricky to get the correct number of steps that you have to go back if you have hash-based routing in your app (you could use sap.ui.core.routing.History or a similar mechanism).