Class Hyperlink
Stay organized with collections
Save and categorize content based on your preferences.
Hyperlink
A Hyperlink element used in TextFormatElement .
Only available for Google Workspace add-ons that extend Google Workspace Studio.
consthyperLink=AddOnsResponseService.newHyperlink() .setText("Hyperlink_text") .setLink("https://www.google.com");
Methods
| Method | Return type | Brief description |
|---|---|---|
set | Hyperlink | Sets the destination URL of the hyperlink. |
set | Hyperlink | Sets the text of the hyperlink. |
Detailed documentation
setLink(link)
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.
setText(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.