In this second APL module we show a slightly more complex APL document. We use the results of the external API (celebrity birthdays) to render a list on screen. Ww enable each item shown in the list with touch capability.
- Code Tab: do the steps in the Diff section up to 5
- VS Code: show sample data from API (sampleBirthdayResponse) and APL doc (listScreen.json)
- Display Designer: explain Designer. copy listSampleDatasource.son to datasources and listScreen.json to doc tab. Play with it
- Code Tab: do the remaining steps in the Diff section
- APL Display Designer
- APL Layouts & Sequences
- APL Transformers (Text to Hint)
- APL Touch Events
- constants.js: add reference to listScreen doc
- handler.js: in CelebrityBirthdaysIntentHandler add calculation of age in results loop, APL doc rendering directive (explain datasource) and home card. Add TouchIntentHandler code and add it to module.exports. [Add celebrities as dynamic entities]
- index.js: add handlers.TouchIntentHandler to handlers
- localisation.js: add LIST_ related string at bottom. [Fix help verbosity]
- util.js: add convertBirthdateToYearsOld() function
- listSampleDatasource.json: add (not used)
- sampleBirthdayResponse.json: add and show, place on designer
- listScreen.json: add and place on designer, explain it