Class Hyperlink

Hyperlink

A Hyperlink element used in Text Format Element .

Only available for Google Workspace add-ons that extend Google Workspace Studio.

 const 
  
 hyperLink 
  
 = 
  
 AddOnsResponseService 
 . 
 newHyperlink 
 () 
  
 . 
 setText 
 ( 
 "Hyperlink_text" 
 ) 
  
 . 
 setLink 
 ( 
 "https://www.google.com" 
 ); 

Methods

Method Return type Brief description
Hyperlink Sets the destination URL of the hyperlink.
Hyperlink Sets the text of the hyperlink.

Detailed documentation

Sets the destination URL of the hyperlink.

Parameters

Name Type Description
link
String The destination URL of the hyperlink.

Return

Hyperlink — This hyperlink object, for chaining.


set Text(text)

Sets the text of the hyperlink.

Parameters

Name Type Description
text
String The text of the hyperlink.

Return

Hyperlink — This hyperlink object, for chaining.

Design a Mobile Site
View Site in Mobile | Classic
Share by: