एडिटर ऐड-ऑन के यूज़र इंटरफ़ेस
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
एडिटर ऐड-ऑन
की मदद से, उपयोगकर्ता को पसंद के मुताबिक बनाए गए मेन्यू, डायलॉग बॉक्स, और
साइडबार के ज़रिए इंटरैक्ट करने की सुविधा मिलती है. यहां दिए गए लिंक पर जाकर, इस तरह के इंटरफ़ेस बनाने के बारे में जानकारी पाएं.
ऐड-ऑन मेन्यू, Apps Script की बुनियादी Ui सेवा का इस्तेमाल करके बनाए जाते हैं.
मेन्यू आइटम, ऐड-ऑन का इस्तेमाल शुरू करने के लिए शुरुआती पॉइंट देते हैं. हालांकि, आपको उन्हें इस तरह से डिज़ाइन करना होगा कि वे ऐड-ऑन के अनुमति देने के लाइफ़साइकल को ध्यान में रखें.
साइडबार और डायलॉग बॉक्स, Apps Script की एचटीएमएल सेवा का इस्तेमाल करके बनाए जाते हैं. इस सेवा की मदद से, एचटीएमएल और सीएसएस का इस्तेमाल करके इंटरफ़ेस के स्ट्रक्चर और लुक को तय किया जा सकता है.
ज़्यादा जानकारी के लिए, एचटीएमएल बनाना और उसे दिखाना लेख पढ़ें.
- क्लाइंट-सर्वर कम्यूनिकेशन कॉल भी सेट अप किए जा सकते हैं. इससे इंटरफ़ेस में उपयोगकर्ता की कार्रवाइयों के नतीजे, Google के उन सर्वर पर दिखते हैं जहां एडिटर फ़ाइल मौजूद होती है या इसके उलट होता है.
- Apps Script, डाइनैमिक इंटरफ़ेस को आसानी से बनाने के लिए टेंप्लेट सिंटैक्स भी उपलब्ध कराता है.
Editor ऐड-ऑन के लिए एचटीएमएल इंटरफ़ेस बनाते समय, आपको Editor ऐड-ऑन सीएसएस पैकेज का इस्तेमाल करना चाहिए. इससे आपका ऐड-ऑन, Google Workspace के उन एडिटर की तरह दिखेगा जिनके लिए इसे बनाया गया है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eEditor add-ons enhance user interaction with custom menus, dialogs, and sidebars, built using Apps Script's UI and HTML services.\u003c/p\u003e\n"],["\u003cp\u003eAdd-on menus initiate add-on usage and should be designed considering the add-on authorization lifecycle.\u003c/p\u003e\n"],["\u003cp\u003eSidebars and dialogs, created with HTML service, allow for defining the add-on's interface structure and appearance using HTML, CSS, and client-server communication for dynamic interactions.\u003c/p\u003e\n"],["\u003cp\u003eThe Editor add-on CSS package ensures visual consistency with Google Workspace editors.\u003c/p\u003e\n"]]],["Editor add-ons allow user interaction via custom menus, dialogs, and sidebars. Menus, built with the Ui service, serve as starting points, requiring design consideration for the add-on authorization lifecycle. Sidebars and dialogs, created using the HTML service, utilize HTML and CSS for interface design. Client-server communication enables actions on the server based on user interface interactions. The editor add-on CSS package maintains a consistent look and feel with Google Workspace editors. Dynamic interface creation is supported via a template syntax.\n"],null,["# Editor add-on user interfaces\n\n[Editor add-ons](/workspace/add-ons/concepts/types#editor_add-ons)\nenable user interaction through customized menus, dialogs, and\nsidebars. The following links provide information building these types of\ninterfaces.\n\n- [Add-on menus](/workspace/add-ons/concepts/menus) are created using\n Apps Script's base [Ui service](/apps-script/reference/base/ui).\n Menus items provide initial starting points for using your add-on,\n but you must design them to take into account the add-on\n [authorization lifecycle](/workspace/add-ons/concepts/editor-auth-lifecycle#the_complete_lifecycle).\n\n- [Sidebars and dialogs](/workspace/add-ons/concepts/dialogs) are created using\n Apps Script's [HTML service](/apps-script/reference/html). This service\n lets you define the interface structure and appearence using HTML and CSS.\n See [Create and serve HTML](/apps-script/guides/html) for more details.\n\n - You can also set up [client-server communication](/apps-script/guides/html/communication) calls so that user actions in the interface result in actions taken on the Google servers where the editor file resides, or vice versa.\n - Apps Script also provides a [template syntax](/apps-script/guides/html/templates) to make building dynamic interfaces easier.\n- When building HTML interfaces for Editor add-ons, you should use the\n [Editor add-on CSS package](/workspace/add-ons/guides/css) to help your add-on\n look and feel like the Google Workspace editors\n they extend."]]