Class ListContainer

List Container

Container for list items, where each list item can contain multiple Text Format Element . *

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

 const 
  
 listContainer 
  
 = 
  
 AddOnsResponseService 
 . 
 newListContainer 
 () 
  
 . 
 setListType 
 ( 
 AddOnsResponseService 
 . 
 ListType 
 . 
 UNORDERED 
 ) 
  
 . 
 addListItem 
 ( 
  
 AddOnsResponseService 
 . 
 newListItem 
 () 
  
 . 
 addTextFormatElement 
 ( 
  
 AddOnsResponseService 
 . 
 newTextFormatElement 
 () 
  
 . 
 setStyledText 
 ( 
 sampleStyledText 
 ) 
  
 )); 

Methods

Method Return type Brief description
List Container Adds a list item to the list container.
List Container Sets the level of the list, starts from 0 for the top level, and increases by 1 for each nested list.
List Container Sets the type of the list to be ordered or unordered.

Detailed documentation

add List Item(listItem)

Adds a list item to the list container.

Parameters

Name Type Description
list Item
List Item The List Item to be added to the list container.

Return

List Container — This list container object, for chaining.


set List Nest Level(listLevel)

Sets the level of the list, starts from 0 for the top level, and increases by 1 for each nested list.

Parameters

Name Type Description
list Level
Integer The number of nest levels of the list.

Return

List Container — This list container object, for chaining.


set List Type(listType)

Sets the type of the list to be ordered or unordered.

Parameters

Name Type Description
list Type
List Type The List Type of the list.

Return

List Container — This list container object, for chaining.

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