MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / createCloseCallback

Function createCloseCallback

apps/ui/src/modal-view/modal-view-page.ts:4–11  ·  view source on GitHub ↗
(label: Label, context?: string)

Source from the content-addressed store, hash-verified

2import { Label } from '@nativescript/core/ui/label';
3
4function 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
13function openModal(page: Page, label: Label, context: string) {
14 page.showModal('modal-view/login-page', {

Callers 3

openModalFunction · 0.85
onTapFunction · 0.85
onTapStretchedFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected