| 44 | } |
| 45 | |
| 46 | export function onTapSecondModalInCB(args) { |
| 47 | const page = <Page>args.object.page; |
| 48 | const label = page.getViewById<Label>('label'); |
| 49 | page.showModal('modal-view/login-page', { |
| 50 | context: 'First', |
| 51 | closeCallback: (username: string, password: string) => { |
| 52 | const result = 'First/' + username + '/' + password; |
| 53 | console.log(result); |
| 54 | label.text = result; |
| 55 | |
| 56 | // Open second modal in the close callback of the first one. |
| 57 | openModal(page, label, 'Second'); |
| 58 | }, |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | export function onTapSecondModalInTimer(args) { |
| 63 | const page = <Page>args.object.page; |