|
1 | | -// Copyright 2025 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -1197,6 +1197,26 @@ message SelectionInput { |
1197 | 1197 | SWITCH = 2; |
1198 | 1198 |
|
1199 | 1199 | // A dropdown menu. Users can select one item from the menu. |
| 1200 | + // |
| 1201 | + // For Google Chat apps, you can populate items using a dynamic data source |
| 1202 | + // and autosuggest items as users type in the menu. For example, users can |
| 1203 | + // start typing the name of a Google Chat space and the widget autosuggests |
| 1204 | + // the space. To dynamically populate items for a dropdown menu, use one of |
| 1205 | + // the following types of data sources: |
| 1206 | + // |
| 1207 | + // * Google Workspace data: Items are populated using data from Google |
| 1208 | + // Workspace, such as Google Workspace users or Google Chat spaces. |
| 1209 | + // * External data: Items are populated from an external data |
| 1210 | + // source outside of Google Workspace. |
| 1211 | + // |
| 1212 | + // For examples of how to implement dropdown menus for Chat apps, see |
| 1213 | + // [Add a dropdown |
| 1214 | + // menu](https://developers.google.com/workspace/chat/design-interactive-card-dialog#dropdown-menu) |
| 1215 | + // and [Dynamically populate drop-down |
| 1216 | + // menus](https://developers.google.com/workspace/chat/design-interactive-card-dialog#dynamic-dropdown-menu). |
| 1217 | + // |
| 1218 | + // [Google Workspace add-ons and Chat |
| 1219 | + // apps](https://developers.google.com/workspace/extend): |
1200 | 1220 | DROPDOWN = 3; |
1201 | 1221 |
|
1202 | 1222 | // A menu with a text box. Users can type and select one or more items. |
|
0 commit comments