A text format element, which can be a Text
, Styled
, Hyperlink
, or List
.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
const sampleChip = AddOnsResponseService . newTextFormatChip () . setLabel ( "Label!" ); const textFormatElement = AddOnsResponseService . newTextFormatElement () . setTextFormatChip ( sampleChip );
Methods
| Method | Return type | Brief description |
|---|---|---|
Text
|
Sets the text format element as a Hyperlink
. |
|
Text
|
Sets the text format element as a List
. |
|
Text
|
Sets the text format element as a Styled
. |
|
Text
|
Sets the text format element as a text string. | |
Text
|
Sets the text format element as a Text
. |
Detailed documentation
set
Hyperlink(hyperlink)
Sets the text format element as a Hyperlink
.
Parameters
| Name | Type | Description |
|---|---|---|
hyperlink
|
Hyperlink
|
The Hyperlink
of the text format element. |
Return
Text
— This text format element object.
set
List
Container(listContainer)
Sets the text format element as a List
.
Parameters
| Name | Type | Description |
|---|---|---|
list
|
List
|
The List
of the text format element. |
Return
Text
— This text format element object.
set
Styled
Text(styledText)
Sets the text format element as a Styled
.
Parameters
| Name | Type | Description |
|---|---|---|
styled
|
Styled
|
The Styled
of the text format element. |
Return
Text
— This text format element object.
set
Text(text)
Sets the text format element as a text string.
Parameters
| Name | Type | Description |
|---|---|---|
text
|
String
|
The text of the text format element. |
Return
Text
— This text format element object.
set
Text
Format
Chip(chip)
Sets the text format element as a Text
.
Parameters
| Name | Type | Description |
|---|---|---|
chip
|
Text
|
The Text
of the text format element. |
Return
Text
— This text format element object.

