Class Hyperlink

Hyperlink

A Hyperlink element used in TextFormatElement.

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

MethodReturn typeBrief description
setLink(link)HyperlinkSets the destination URL of the hyperlink.
setText(text)HyperlinkSets the text of the hyperlink.

Detailed documentation

Sets the destination URL of the hyperlink.

Parameters

NameTypeDescription
linkStringThe destination URL of the hyperlink.

Return

Hyperlink — This hyperlink object, for chaining.


setText(text)

Sets the text of the hyperlink.

Parameters

NameTypeDescription
textStringThe text of the hyperlink.

Return

Hyperlink — This hyperlink object, for chaining.