Text
Format
Icon
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 |
|---|---|---|
Text
|
Sets the icon URL. | |
Text
|
Sets the material icon name defined in Google Material Icons. |
Detailed documentation
set
Icon
Url(iconUrl)
Sets the icon URL.
Parameters
| Name | Type | Description |
|---|---|---|
icon
|
String
|
The destination URL of the icon. |
Return
Text
— This text format icon object.
set
Material
Icon
Name(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.

