Class TextFormatIcon

TextFormatIcon

An icon that is displayed in a TextFormatChip .

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 Format Icon Sets the icon URL.
Text Format Icon Sets the material icon name defined in Google Material Icons.

Detailed documentation

setIconUrl(iconUrl)

Sets the icon URL.

Parameters

Name Type Description
icon Url
String The destination URL of the icon.

Return

TextFormatIcon — This text format icon object.


setMaterialIconName(materialIconName)

Sets the material icon name defined in Google Material Icons.

Parameters

Name Type Description
material Icon Name
String The material icon name to set.

Return

TextFormatIcon — This text format icon object.

Create a Mobile Website
View Site in Mobile | Classic
Share by: