An icon that is displayed in a Text.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
const icon = AddOnsResponseService.newTextFormatIcon() .setMaterialIconName("check_box");
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Text | Sets the icon URL. |
set | Text | Sets the material icon name defined in Google Material Icons. |
Detailed documentation
setIconUrl(iconUrl)
Sets the icon URL.
Parameters
| Name | Type | Description |
|---|---|---|
icon | String | The destination URL of the icon. |
Return
Text — This text format icon object.
setMaterialIconName(materialIconName)
Sets the material icon name defined in Google Material Icons.
Parameters
| Name | Type | Description |
|---|---|---|
material | String | The material icon name to set. |
Return
Text — This text format icon object.