For the complete documentation index, see llms.txt. This page is also available as Markdown.

Screen.close

함수형 API closeView로도 같은 기능을 쓸 수 있어요.

기능 설명

현재 화면을 닫아요. 예를 들어 "닫기" 버튼으로 서비스를 종료할 때 사용할 수 있어요.

타입

Screen.close(): Promise<void>;

Params

없음.

Response

없음.

예시 코드

import { Screen } from "@apps-in-toss/web-framework";

const closeButton = document.querySelector("#close-button");

closeButton.addEventListener("click", async () => {
  await Screen.close();
});

도움이 되었나요?