Created
January 20, 2020 19:08
-
-
Save xeladotbe/190a83d7253dbcd4f0cad90947b2780f to your computer and use it in GitHub Desktop.
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.2", | |
"import": [ | |
{ | |
"name": "alexa-layouts", | |
"version": "1.1.0" | |
} | |
], | |
"layouts": { | |
"mainLayout": { | |
"parameters": [ | |
"sequenceItems" | |
], | |
"item": [ | |
{ | |
"type": "Container", | |
"width": "100%", | |
"height": "100%", | |
"items": [ | |
{ | |
"type": "Container", | |
"width": "90%", | |
"height": "60%", | |
"items": [ | |
{ | |
"type": "Text", | |
"textAlign": "center", | |
"fontStyle": "italic", | |
"text": "APL Sequence Issue", | |
"fontWeight": "500" | |
}, | |
{ | |
"type": "Container", | |
"alignItems": "center", | |
"justifyContent": "center", | |
"items": [ | |
{ | |
"type": "Text", | |
"text": "${environment.agentName}" | |
}, | |
{ | |
"type": "Text", | |
"text": "${environment.agentVersion}" | |
} | |
] | |
}, | |
{ | |
"type": "Sequence", | |
"width": "60%", | |
"height": "20vh", | |
"data": "${sequenceItems}", | |
"scrollDirection": "horizontal", | |
"items": [ | |
{ | |
"type": "Container", | |
"width": "15vh", | |
"items": [ | |
{ | |
"type": "Frame", | |
"width": "80%", | |
"items": [ | |
{ | |
"type": "Container", | |
"height": "20vh", | |
"items": [ | |
{ | |
"type": "Text", | |
"color": "#000000", | |
"text": "${index}/${length}" | |
} | |
] | |
} | |
], | |
"backgroundColor": "white" | |
} | |
], | |
"spacing": "10" | |
} | |
] | |
} | |
], | |
"alignSelf": "center", | |
"position": "relative" | |
} | |
] | |
} | |
] | |
} | |
}, | |
"mainTemplate": { | |
"parameters": [ | |
"payload" | |
], | |
"item": [ | |
{ | |
"sequenceItems": "${payload.templateMetadata.sequenceItems}", | |
"type": "mainLayout" | |
} | |
] | |
} | |
}, | |
"datasources": { | |
"templateMetadata": { | |
"type": "object", | |
"sequenceItems": [ | |
"", | |
"", | |
"", | |
"", | |
"" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment