Screen.close
Functional API
closeViewYou can use the same feature with it as well.
Feature description
Closes the current screen. For example, it can be used when ending a service with the "Close" button.
Type
Screen.close(): Promise<void>;Params
None.
Response
None.
Example code
import { Screen } from "@apps-in-toss/web-framework";
const closeButton = document.querySelector("#close-button");
closeButton.addEventListener("click", async () => {
await Screen.close();
});Was this helpful?