(label: Label, context?: string)
| 2 | import { Label } from '@nativescript/core/ui/label'; |
| 3 | |
| 4 | function createCloseCallback(label: Label, context?: string): (username: string, password: string) => void { |
| 5 | return function (username: string, password: string) { |
| 6 | let result = username + '/' + password; |
| 7 | result = context ? context + '/' + result : result; |
| 8 | console.log(result); |
| 9 | label.text = result; |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | function openModal(page: Page, label: Label, context: string) { |
| 14 | page.showModal('modal-view/login-page', { |
no test coverage detected