|
24 | 24 | * the following documentation: * For Google Chat apps, see [Design the components of a card or |
25 | 25 | * dialog](https://developers.google.com/workspace/chat/design-components-card-dialog). * For Google |
26 | 26 | * Workspace add-ons, see [Card-based interfaces](https://developers.google.com/apps-script/add- |
27 | | - * ons/concepts/cards). Note: You can add up to 100 widgets per card. Any widgets beyond this limit |
28 | | - * are ignored. This limit applies to both card messages and dialogs in Google Chat apps, and to |
29 | | - * cards in Google Workspace add-ons. **Example: Card message for a Google Chat app**  To |
31 | | - * create the sample card message in Google Chat, use the following JSON: ``` { "cardsV2": [ { |
32 | | - * "cardId": "unique-card-id", "card": { "header": { "title": "Sasha", "subtitle": "Software |
33 | | - * Engineer", "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app- |
34 | | - * avatar.png", "imageType": "CIRCLE", "imageAltText": "Avatar for Sasha" }, "sections": [ { |
35 | | - * "header": "Contact Info", "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ { |
36 | | - * "decoratedText": { "startIcon": { "knownIcon": "EMAIL" }, "text": "sasha@example.com" } }, { |
37 | | - * "decoratedText": { "startIcon": { "knownIcon": "PERSON" }, "text": "Online" } }, { |
38 | | - * "decoratedText": { "startIcon": { "knownIcon": "PHONE" }, "text": "+1 (555) 555-1234" } }, { |
39 | | - * "buttonList": { "buttons": [ { "text": "Share", "onClick": { "openLink": { "url": |
40 | | - * "https://example.com/share" } } }, { "text": "Edit", "onClick": { "action": { "function": |
41 | | - * "goToView", "parameters": [ { "key": "viewType", "value": "EDIT" } ] } } } ] } } ] } ] } } ] } |
42 | | - * ``` |
| 27 | + * ons/concepts/cards). Note: You can add up to 100 widgets per card. If a section's widgets push |
| 28 | + * the total count above 100, that entire section and all following sections are ignored. This limit |
| 29 | + * applies to both card messages and dialogs in Google Chat apps, and to cards in Google Workspace |
| 30 | + * add-ons. **Example: Card message for a Google Chat app**  To create the |
| 32 | + * sample card message in Google Chat, use the following JSON: ``` { "cardsV2": [ { "cardId": |
| 33 | + * "unique-card-id", "card": { "header": { "title": "Sasha", "subtitle": "Software Engineer", |
| 34 | + * "imageUrl": "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png", |
| 35 | + * "imageType": "CIRCLE", "imageAltText": "Avatar for Sasha" }, "sections": [ { "header": "Contact |
| 36 | + * Info", "collapsible": true, "uncollapsibleWidgetsCount": 1, "widgets": [ { "decoratedText": { |
| 37 | + * "startIcon": { "knownIcon": "EMAIL" }, "text": "sasha@example.com" } }, { "decoratedText": { |
| 38 | + * "startIcon": { "knownIcon": "PERSON" }, "text": "Online" } }, { "decoratedText": { "startIcon": { |
| 39 | + * "knownIcon": "PHONE" }, "text": "+1 (555) 555-1234" } }, { "buttonList": { "buttons": [ { "text": |
| 40 | + * "Share", "onClick": { "openLink": { "url": "https://example.com/share" } } }, { "text": "Edit", |
| 41 | + * "onClick": { "action": { "function": "goToView", "parameters": [ { "key": "viewType", "value": |
| 42 | + * "EDIT" } ] } } } ] } } ] } ] } } ] } ``` |
43 | 43 | * |
44 | 44 | * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
45 | 45 | * transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: |
|
0 commit comments