Created
July 30, 2020 20:24
-
-
Save goldzulu/4d469448f1af3a322b98df88141c4888 to your computer and use it in GitHub Desktop.
Alexa Grid List Sequence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"document": { | |
"type": "APL", | |
"version": "1.4", | |
"theme": "dark", | |
"import": [ | |
{ | |
"name": "alexa-layouts", | |
"version": "1.2.0" | |
} | |
], | |
"mainTemplate": { | |
"parameters": [ | |
"gridListData" | |
], | |
"items": [ | |
{ | |
"type": "AlexaGridList", | |
"headerTitle": "${gridListData.headerTitle}", | |
"headerAttributionImage": "${gridListData.headerAttributionImage}", | |
"backgroundImageSource": "${gridListData.backgroundImageSource}", | |
"defaultImageSource": "${gridListData.defaultImageSource}", | |
"imageAspectRatio": "standard_landscape", | |
"imageBlurredBackground": true, | |
"listItems": "${gridListData.listItemsToShow}", | |
"imageShowProgressBar": true | |
} | |
] | |
} | |
}, | |
"datasources": { | |
"gridListData": { | |
"headerTitle": "The Cool Twitch Brady Bunch", | |
"headerSubtitle": "Header subtitle", | |
"headerAttributionImage": "https://s3.amazonaws.com/ask-skills-assets/apl-layout-assets/attribution_dark_hub_prime.png", | |
"backgroundImageSource": "https://d2o906d8ln7ui1.cloudfront.net/images/BT6_Background.png", | |
"defaultImageSource": "https://d2o906d8ln7ui1.cloudfront.net/images/BT7_Background.png", | |
"hintText": "Alexa image list footer hint text", | |
"listItemsToShow": [ | |
{ | |
"primaryText": "Urban Blaster", | |
"secondaryText": "Cool Hunk", | |
"imageSource": "https://randomuser.me/api/portraits/men/17.jpg", | |
"imageProgressBarPercentage": 90, | |
"imageShowProgressBar": false, | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 4.5 | |
}, | |
{ | |
"primaryText": "Kevin Evans", | |
"secondaryText": "Bald Goodness", | |
"tertiaryText": "Rendel Morris", | |
"imageSource": "https://randomuser.me/api/portraits/men/21.jpg", | |
"providerText": "Most Generous", | |
"imageProgressBarPercentage": 50, | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 5 | |
}, | |
{ | |
"primaryText": "Will Rongholt", | |
"secondaryText": "Bit Behind", | |
"imageSource": "https://randomuser.me/api/portraits/men/23.jpg", | |
"providerText": "Ex Navy Seals", | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 4.5 | |
}, | |
{ | |
"primaryText": "OxygenBox", | |
"secondaryText": "Quirky Comments", | |
"imageSource": "https://randomuser.me/api/portraits/men/12.jpg", | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 5 | |
}, | |
{ | |
"primaryText": "Daniel", | |
"secondaryText": "Lolly Guy", | |
"imageSource": "https://randomuser.me/api/portraits/men/43.jpg", | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 5 | |
}, | |
{ | |
"primaryText": "Sixth list item (long text that wraps)", | |
"secondaryText": "Longer secondary text that truncates", | |
"imageSource": "https://randomuser.me/api/portraits/women/10.jpg", | |
"ratingSlotMode": "multiple", | |
"ratingNumber": 0 | |
} | |
] | |
} | |
}, | |
"sources": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment