Created
April 15, 2020 16:50
-
-
Save arunjeetsingh/44b3d37d2fdfd531a197d8b277a493b3 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
{ | |
"commands": {}, | |
"type": "APL", | |
"version": "1.1", | |
"theme": "dark", | |
"mainTemplate": { | |
"parameters": [ | |
"payload" | |
], | |
"items": [ | |
{ | |
"type": "Pager", | |
"id": "mypager", | |
"width": "100%", | |
"height": "100%", | |
"navigation": "wrap", | |
"onMount": [ | |
{ | |
"type": "Sequential", | |
"repeatCount": 1000, | |
"commands": [ | |
{ | |
"type": "SetPage", | |
"delay": 5000, | |
"componentId": "mypager", | |
"position": "relative", | |
"value": 1 | |
} | |
] | |
} | |
], | |
"items": [ | |
{ | |
"type": "Container", | |
"id": "big-sky-speaker", | |
"height": "100vh", | |
"width": "100vw", | |
"alignItems": "center", | |
"items": [ | |
{ | |
"type": "Text", | |
"text": "Page 1" | |
}, | |
{ | |
"type": "Text", | |
"bind": { | |
"name": "T", | |
"value": "${elapsedTime}" | |
}, | |
"text": "${Time.format('mm:ss', T)}" | |
} | |
] | |
}, | |
{ | |
"type": "Container", | |
"id": "big-sky-speaker", | |
"height": "100vh", | |
"width": "100vw", | |
"alignItems": "center", | |
"items": [ | |
{ | |
"type": "Text", | |
"text": "Page 2" | |
}, | |
{ | |
"type": "Text", | |
"bind": { | |
"name": "T", | |
"value": "${elapsedTime}" | |
}, | |
"text": "${Time.format('mm:ss', T)}" | |
} | |
] | |
}, | |
{ | |
"type": "Container", | |
"id": "big-sky-speaker", | |
"height": "100vh", | |
"width": "100vw", | |
"alignItems": "center", | |
"items": [ | |
{ | |
"type": "Text", | |
"text": "Page 3" | |
}, | |
{ | |
"type": "Text", | |
"bind": { | |
"name": "T", | |
"value": "${elapsedTime}" | |
}, | |
"text": "${Time.format('mm:ss', T)}" | |
} | |
] | |
}, | |
{ | |
"type": "Container", | |
"id": "big-sky-speaker", | |
"height": "100vh", | |
"width": "100vw", | |
"alignItems": "center", | |
"items": [ | |
{ | |
"type": "Text", | |
"text": "Page 4" | |
}, | |
{ | |
"type": "Text", | |
"bind": { | |
"name": "T", | |
"value": "${elapsedTime}" | |
}, | |
"text": "${Time.format('mm:ss', T)}" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that there is a known issue that will prevent this sample from working correctly in the APL authoring tool (Display button in the Build tab). Echo Show/Spot, Fire TV, and Fire tablet devices are not impacted by this issue. In the authoring tool, a SetPage command with position=relative and value=1 on the final page of a Pager with navigation=wrap makes the Pager goes to the second to last page instead of wrapping around to page 1.