Google Workspace 부가기능은 호스트 애플리케이션 UI의 사이드바에 정보와 사용자 컨트롤을 표시합니다. 부가기능은 기본 식별 도구 모음과 하나 이상의 카드로 구성됩니다.
각 카드는 부가기능 UI의 특정 '페이지'를 나타내며, 새 카드로 이동하는 것은 일반적으로 해당 카드를 만들고 내부 카드 스택으로 푸시하는 문제일 뿐입니다.
리치 상호작용 환경을 위해 카드 간의 탐색 흐름을 정의할 수 있습니다.
카드는 비맥락적이거나 맥락적일 수 있습니다. 컨텍스트 카드는 호스트 애플리케이션이 특정 컨텍스트에 있을 때 사용자에게 표시됩니다. 예를 들어 Gmail 메일 또는 캘린더 일정을 열 때입니다. 비컨텍스트 카드 (예: 홈페이지)는 호스트의 특정 컨텍스트 외부에서 사용자에게 표시됩니다. 예를 들어 사용자가 Gmail 받은편지함, 기본 Drive 폴더 또는 캘린더를 보고 있는 경우입니다.
Apps Script로 빌드된 Google Workspace 부가기능은 카드 서비스를 사용하여 카드로 사용자 인터페이스를 만듭니다. 다른 언어로 빌드된 부가기능은 인터페이스가 카드로 렌더링되도록 올바른 형식의 JSON을 반환해야 합니다.
각 카드는 헤더와 하나 이상의 카드 섹션으로 구성됩니다. 각 섹션은 위젯 집합으로 구성됩니다. 위젯은 사용자에게 정보를 표시하거나 버튼과 같은 상호작용 컨트롤을 제공합니다.
카드 기반 인터페이스에는 다음과 같은 이점이 있습니다.
카드 기반 인터페이스를 만드는 데 HTML이나 CSS에 대한 지식이 필요하지 않습니다.
카드와 위젯은 확장하는 Google Workspace 애플리케이션과 잘 작동하도록 자동으로 스타일이 지정됩니다.
카드 기반 인터페이스는 데스크톱과 휴대기기 모두에서 작동하지만 인터페이스는 한 번만 정의하면 됩니다.
카드 기반 인터페이스 만들기
카드 기반 부가기능을 빌드할 때는 특정 개념과 디자인 패턴을 이해하는 것이 중요합니다. 다음 가이드에서는 효과적인 카드 기반 부가기능을 빌드하는 데 필요한 정보를 제공합니다.
이 부가기능 샘플은 Gmail 메일 수신자, Drive 파일 편집자 또는 Calendar 일정 참석자에 관한 사용자 정보를 표시하는 더 복잡한 Google Workspace 부가기능 샘플을 보여줍니다. 이 부가기능은 Directory API를 사용하여 사용자 정보를 가져오므로 도메인 내에서만 사용할 수 있습니다.
[null,null,["최종 업데이트: 2025-08-04(UTC)"],[[["\u003cp\u003eGoogle Workspace add-ons use cards to build user interfaces within the host application's sidebar, offering navigation and interactive elements.\u003c/p\u003e\n"],["\u003cp\u003eCards can be contextual, appearing in specific situations like opening an email, or non-contextual, like when viewing your inbox.\u003c/p\u003e\n"],["\u003cp\u003eCard-based interfaces are built using cards, widgets, and actions, offering a structured way to present information and controls.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons built with Apps Script utilize the Card service, while other languages require formatted JSON for card rendering.\u003c/p\u003e\n"],["\u003cp\u003eThese interfaces are automatically styled, responsive across devices, and require no HTML/CSS knowledge for basic creation.\u003c/p\u003e\n"]]],["Google Workspace add-ons utilize card-based UIs within host applications, comprising a toolbar and multiple cards. These cards, representing UI pages, are built using the Card service or JSON. Navigation involves pushing new cards onto a stack. Cards can be contextual, appearing in specific host application states, or non-contextual, like homepages, visible in general views. Each card contains sections composed of widgets, offering information or interaction controls. Key actions include defining card navigation, constructing cards with sections and widgets, and implementing actions.\n"],null,["# Card-based interfaces\n\n| **Note:** Google Workspace add-ons are card-based. Editor add-ons are [HTML-based](/workspace/add-ons/concepts/html-interfaces).\n\nGoogle Workspace add-ons present information and user\ncontrols in the sidebar of the\n[host application](/workspace/add-ons/guides/glossary#host_or_host_application)\nUI. An add-on consists of a main identifying toolbar along with one or more\n[cards](/workspace/add-ons/concepts/cards).\n\nEach card represents a particular 'page' of your add-on's UI, and\n[navigating to a new card](/workspace/gmail/add-ons/how-tos/navigation) is\nusually just a matter of creating that card and\n[pushing it onto an internal card stack](/workspace/gmail/add-ons/how-tos/navigation#navigation_methods).\nYou can define navigation flows between cards for a rich interaction experience.\n\nCards can be *non-contextual* or *contextual* . Contextual cards are presented\nto the user when the host application is in a specific context. For example,\nwhen opening a Gmail message or Calendar event. Non-contextual cards (such as\n[homepages](/workspace/add-ons/concepts/homepages)) are presented to the user\noutside of a specific context of the host. For example, when the user is\nviewing their Gmail inbox, main Drive folder, or Calendar.\n\nGoogle Workspace add-ons built in Apps Script use the\n[Card service](/apps-script/reference/card-service/card-service) to create user interfaces out of\n[cards](/workspace/add-ons/concepts/cards). Add-ons built in other languages\nmust return properly formatted JSON for the interface to render as cards.\n\nEach card consists of a header and one or more card sections. Each section is\ncomposed of a set of [widgets](/workspace/add-ons/concepts/widgets). Widgets\ndisplay information to the user or provide interaction controls like buttons.\n\nCard-based interfaces have the following benefits:\n\n- No knowledge of HTML or CSS is needed to create card-based interfaces.\n- Cards and widgets are automatically styled to work well with the Google Workspace applications they extend.\n- Card-based interfaces work on both desktop and mobile devices, but you only\n need to define the interface once.\n\n | **Note:** Gmail is currently the only host application that can be extended by Google Workspace add-ons on mobile.\n\nCreating card-based interfaces\n------------------------------\n\nWhen building card-based add-ons, it's important to understand certain\nconcepts and design patterns. The following guides provide the information\nyou need to build effective card-based add-ons:\n\n- [Cards](/workspace/add-ons/concepts/cards)\n- [Homepages](/workspace/add-ons/concepts/homepages)\n- [Widgets](/workspace/add-ons/concepts/widgets)\n- [Actions](/workspace/add-ons/concepts/actions)\n- [Event objects](/workspace/add-ons/concepts/event-objects)\n- [Constructing cards](/workspace/add-ons/how-tos/building-workspace-addons#constructing_cards)\n- [Building interactive cards](/workspace/add-ons/how-tos/interactions)\n- [Navigating between cards](/workspace/add-ons/how-tos/navigation)\n- [Using universal actions](/workspace/add-ons/how-tos/universal-actions)\n- [Adding autocomplete to text inputs](/workspace/add-ons/how-tos/suggestions)\n- [Accessing user locales and timezones](/workspace/add-ons/how-tos/access-user-locale)\n- [Connecting to non-Google services](/workspace/add-ons/how-tos/non-google-services)\n- [Style guide](/workspace/add-ons/guides/workspace-style)\n- [Best Practices](/workspace/add-ons/guides/workspace-best-practices)\n\nReference these pages when creating cards and implementing\nUI behavior. You may also find the following additional samples useful to\nreference when implementing your add-on:\n\n- [Google Workspace add-on \"Cats\" quickstart](/workspace/add-ons/cats-quickstart)\n\n This add-on sample shows a simple Google Workspace add-on UI with multiple pages and\n homepages.\n- [Google Workspace add-on: \"Translate\"](/workspace/add-ons/translate-addon-sample)\n\n This add-on sample shows a Google Workspace add-on that lets users translate text from\n within Docs, Sheets, and Slides.\n- [Google Workspace add-on: \"Teams List\"](/workspace/add-ons/teams-addon-sample)\n\n This add-on sample shows a more complex\n Google Workspace add-on sample, that shows\n user information about Gmail message recipients, Drive file editors, or\n Calendar event attendees. You can only use this add-on inside a domain, since\n it uses the [Directory API](/workspace/admin/directory) to retrieve\n user information."]]