Enum OpenAs
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
As 열기
URL을 여는 방법을 지정하는 enum입니다.
클라이언트는 URL을 전체 크기 창 (클라이언트에서 사용하는 프레임인 경우) 또는 오버레이 (예: 팝업)로 열 수 있습니다. 구현은 클라이언트 플랫폼 기능에 따라 다르며 클라이언트에서 지원하지 않는 경우 선택한 값이 무시될 수 있습니다. FULL_SIZE
는 모든 클라이언트에서 지원됩니다.
OnClose
를 사용하면 OpenAs
가 무시될 수 있습니다. 클라이언트 플랫폼에서 선택한 두 값을 모두 지원할 수 없는 경우 OnClose
가 우선 적용됩니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.OpenAs.FULL_SIZE
입니다.
속성
속성 | 유형 | 설명 |
FULL_SIZE | Enum | 전체 창 또는 탭에서 엽니다. 기본값입니다. |
OVERLAY | Enum | 팝업과 같은 오버레이로 열립니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eOpenAs\u003c/code\u003e is an enum used to specify how a URL should be opened by the client, either as a full-size window or an overlay.\u003c/p\u003e\n"],["\u003cp\u003eWhile \u003ccode\u003eFULL_SIZE\u003c/code\u003e is supported by all clients, \u003ccode\u003eOVERLAY\u003c/code\u003e support depends on the client platform and might be ignored.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eOnClose\u003c/code\u003e may take precedence over \u003ccode\u003eOpenAs\u003c/code\u003e, potentially causing the chosen opening method to be disregarded if the client platform has limitations.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize this enum in your code, use the syntax: \u003ccode\u003eCardService.OpenAs.FULL_SIZE\u003c/code\u003e or \u003ccode\u003eCardService.OpenAs.OVERLAY\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum OpenAs\n\nOpenAs\n\nAn enum that specifies how to open a URL.\n\nThe client can open a URL as either a full size window (if that is the frame used by the\nclient), or an overlay (such as a pop-up). The implementation depends on the client platform\ncapabilities, and the value selected may be ignored if the client does not support it. `FULL_SIZE` is supported by all clients.\n\nUsing [OnClose](/apps-script/reference/card-service/on-close) may cause [OpenAs](#) to be ignored; if the client platform cannot\nsupport both selected values together, [OnClose](/apps-script/reference/card-service/on-close) takes precedence.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.OpenAs.FULL_SIZE`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|----------------------------------------|\n| `FULL_SIZE` | `Enum` | Open in a full window or tab. Default. |\n| `OVERLAY` | `Enum` | Open as an overlay such as a pop-up. |"]]