Enum OpenAs
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस रूप में खोलें
एक एनम, जो यूआरएल खोलने का तरीका बताता है.
क्लाइंट, यूआरएल को फ़ुल साइज़ विंडो (अगर क्लाइंट ने ऐसा फ़्रेम इस्तेमाल किया है) या ओवरले (जैसे, पॉप-अप) के तौर पर खोल सकता है. लागू करने का तरीका, क्लाइंट प्लैटफ़ॉर्म की सुविधाओं पर निर्भर करता है. अगर क्लाइंट इस सुविधा के साथ काम नहीं करता है, तो चुनी गई वैल्यू को अनदेखा किया जा सकता है. FULL_SIZE
की सुविधा सभी क्लाइंट के साथ काम करती है.
OnClose
का इस्तेमाल करने पर, OpenAs
को अनदेखा किया जा सकता है. अगर क्लाइंट प्लैटफ़ॉर्म, चुनी गई दोनों वैल्यू के साथ काम नहीं कर सकता, तो OnClose
को प्राथमिकता दी जाती है.
किसी एनम को कॉल करने के लिए, उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल किया जाता है. उदाहरण के लिए,
CardService.OpenAs.FULL_SIZE
.
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
FULL_SIZE | Enum | फ़ुल विंडो या टैब में खोलें. डिफ़ॉल्ट. |
OVERLAY | Enum | पॉप-अप जैसे ओवरले के तौर पर खोलें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]