type property

String? type
getter/setter pair

The type of items that are displayed to users in a SelectionInput widget.

Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu. Possible string values are:

  • "CHECK_BOX" : A set of checkboxes. Users can select one or more checkboxes.
  • "RADIO_BUTTON" : A set of radio buttons. Users can select one radio button.
  • "SWITCH" : A set of switches. Users can turn on one or more switches.
  • "DROPDOWN" : A dropdown menu. Users can select one item from the menu.
  • "MULTI_SELECT" : A multiselect menu for static or dynamic data. From the menu bar, users select one or more items. Users can also input values to populate dynamic data. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To populate items for a multiselect menu, you can use one of the following types of data sources: * Static data: Items are specified as SelectionItem objects in the widget. Up to 100 items. * Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces. * External data: Items are populated from an external data source outside of Google Workspace. For examples of how to implement multiselect menus, see the [SelectionInput widget page](https://developers.google.com/chat/ui/widgets/selection-input#multiselect-menu). [Google Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend): Multiselect for Google Workspace Add-ons are in Developer Preview.

Implementation

core.String? type;