List
Stentor API Reference / stentor-models/src / List
Interface: List
Defined in: packages/stentor-models/src/Display/List/List.ts:51
List style display items.
Can either be vertical style list or a carousel.
This translates to a List/Carousel on the Google Assistant and ListTemplate1/ListTemplate2 on Amazon Alexa
See https://developers.google.com/actions/assistant/responses#list and https://developer.amazon.com/docs/custom-skills/display-template-reference.html#listtemplate1
Extendsβ
Propertiesβ
itemsObject?β
optionalitemsObject:string
Defined in: packages/stentor-models/src/Display/List/List.ts:18
Beta
Used when templating the list for automatic generation.
When using itemsObject, the first item in the list is the template and all other items in the list will be ignored.
This is not yet fully supported
Inherited fromβ
itemsName?β
optionalitemsName:string
Defined in: packages/stentor-models/src/Display/List/List.ts:24
Beta
Used with itemsObject, it is then used to reference the current item in the list within the template.
This is not yet fully supported
Inherited fromβ
range?β
optionalrange:object
Defined in: packages/stentor-models/src/Display/List/List.ts:31
Beta
When itemsObject is provided, this is the amount of list items to display along with the offset within the list.
This is not yet fully supported
lengthβ
length:
number
fromβ
from:
number
Inherited fromβ
typeβ
type:
"LIST"|"CAROUSEL"
Defined in: packages/stentor-models/src/Display/List/List.ts:58
Type of list.
LIST is vertical, translates to a List on Google and ListTemplate1 on Alexa CAROUSEL is horizontal, translates to a Carousel on Google and ListTemplate2 on Alexa
Overridesβ
token?β
optionaltoken:string
Defined in: packages/stentor-models/src/Display/List/List.ts:62
Token is a reference to the list, required by Alexa
Overridesβ
title?β
optionaltitle:string
Defined in: packages/stentor-models/src/Display/List/List.ts:66
Title of the list, not required for Carousels on Google
Overridesβ
itemsβ
items:
ListItem[]
Defined in: packages/stentor-models/src/Display/List/List.ts:70
The list items.