Last active
January 7, 2018 12:33
-
-
Save marcorei/fca14863d5f48284402326a63a7adf72 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
app.askWithCarousel( | |
// The input prompt. | |
{ | |
speech: 'Here are option A, option B and option C. To which one shpuld I react?', | |
displayText: 'Here are some options. To which option should I react?' | |
}, | |
// The carousel. | |
app.buildCarousel() | |
.addItems(['A', 'B', 'C'] | |
// Creates the option items. | |
// We'll write `buildOptionItem` in the next step! | |
.map(aString => buildOptionItem(app, aString)) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment